Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT Object Issues #69

Open
rootelement opened this issue Sep 8, 2020 · 0 comments
Open

PUT Object Issues #69

rootelement opened this issue Sep 8, 2020 · 0 comments

Comments

@rootelement
Copy link

rootelement commented Sep 8, 2020

In dev, trying to update this object:
717f514d-f375-4e25-aff9-07d2af3052e2

The object looks like this:

{
        "ssoId": "",
        "createdAt": "2018-09-27T14:37:55.000Z",
        "selfRegister": false,
        "createdBy": "8547899",
        "domain": "",
        "name": "Zurich - Parent Group",
        "privateGroup": true,
        "id": "717f514d-f375-4e25-aff9-07d2af3052e2",
        "oldId": "20000145",
        "status": "active"
 }

There is no description property. If i omit it for a PUT, i get a 400 error:
[1] "description" is not allowed to be empty
If i force it to be an empty string, i get the same error.

This is the cURL i'm trying to use:

curl --location --request PUT 'https://api.topcoder-dev.com/v5/groups/041e0be4-7599-402f-989b-b2873b0bed7e' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [DEV_GROUPS_M2M]' \
--data-raw '{ selfRegister: false,
  domain: 'zurich-competitors',
  name: 'Zurich - Competitors',
  privateGroup: true,
  oldId: '20000226',
  status: 'active'}'

In this case, I also stripped ssoId, it wouldn't let me write that back as empty, but it's empty as it is now.

@rootelement rootelement changed the title Update Object Issues PUT Object Issues Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant