Skip to main content

Set User to support an Organisation

PUT 

/v1/users/:id/organisation

For Donations created through the Create A Donation API, A User can be set to donate to a particular Organisation by default using this API. If a Donation is made with a userId, the Donation will be associated with the Organisation the User is supporting at the time of Donation. If the userId is omitted or the User has not been set to donate to an Organisation by default then the organisationId must be included in the body.

Request

Path Parameters

    id stringrequired

    Id of the User.

Body

    organisationId stringrequired

    Organisation id to support.

Responses

Successfully set User to support an Organisation

Schema
    data object
    userId string
    organisationId string
    timestamp date-time
    object string
Loading...