Creates or updates (upserts) a membership with a specified organization ID and user ID. Only the organization owner can grant organization membership to new users.
organizationId required | string (ResourceId) <= 50 characters Unique organization identifier. An organization is an entity that represents a company. For more information, see Obtain an organization ID. Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21 |
userId required | string (ResourceId) <= 50 characters ID of the user. Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21 |
Membership updated.
Membership created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
required | object Organization membership. | ||||||||
| |||||||||
required | object Membership user. | ||||||||
allowedIps | Array of strings or null <ip> (AllowedIps) List of IP addresses that are permitted access.
Private subnets are prohibited.
To remove restrictions, set this value to | ||||||||
permissions | Array of strings <operationId> Permissions that the user has within the organization.
Use the wildcard character | ||||||||
isOwner | boolean Specifies if the user is the owner of the organization. | ||||||||
isDefault | boolean Specifies if the organization is the default organization for the user. | ||||||||
roleIds | Array of strings Role IDs associated with the user. Role IDs specify the roles that the user performs within the organization. For example, the user may be an organization admin. | ||||||||
Array of objects (SelfLink) Related links. | |||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Conflict.
{- "allowedIps": [
- "153.12.32.33",
- "201.54.122.0/24",
- "76.*.*.*",
- "2001:0db8:abcd:0012:0000:0000:0000:ffff",
- "2001:db8:abcd:12::0/64"
], - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
], - "isOwner": true,
- "roleIds": [
- "string"
]
}
{- "organization": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}, - "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string"
}, - "allowedIps": [
- "153.12.32.33",
- "201.54.122.0/24",
- "76.*.*.*",
- "2001:0db8:abcd:0012:0000:0000:0000:ffff",
- "2001:db8:abcd:12::0/64"
], - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
], - "isOwner": true,
- "isDefault": true,
- "roleIds": [
- "string"
], - "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}