Discussions

Ask a Question
Back to All

How can I update a user's invitation to "accepted"?

(edited)

I have tried referencing this endpoint which seems to indicate that you CAN update a user's invitation to "accepted" (since it has this value in the example response), but I cannot seem to get it to work? Perhaps I'm passing in the wrong parameters?

https://developers.cloudability.com/v1.0/docs/organization-invitations#section-update-a-users-invitation-to-an-organization

I am getting a "500" server error HTTP status code back when I do this?

Let me know the proper format, or if this is even possible?

Thanks,

Example I'm using:
VERB: POST
Where invitation id is: 1234
https://app.cloudability.com/api/1/organizations/invitations/1234
Headers: Content-Type:application/json

{
"role_id": 2,
"state": "accepted"
}

I've also tried using the "users" API as in this example (but it doesn't work either)?:
PUT
https://app.cloudability.com/api/1/users/1234

{
"user": {
"full_name": "Test User",
"role": "User",
"restricted": false,
"invitation": "accepted",
"default_dimension_filter_set_id": 45000,
"new_shared_dimension_filter_set_ids": [45000],
"unshare_existing_dimension_filter_sets": true,
"default_dashboard_id": 78100
}
}