Create/Update Business Unit Link
PUT/client/users/:correlation_id/business/units/:business_unit/links/:link_id
Allows caller to update or add a business unit link.
Request
Path Variables
{{cux_url}}/client/users/{{correlation_id}}/business/units/{{business_unit}}/links/{{link_id}}
- correlation_id: This request requires an open session, which will point to the user account
- business_unit: Business Unit key
- link_id: a unique id for the link.
Body
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| dateLinked | ISO-formatted date and time | String | Optional. Represents the date/time this link was created in the client system. If the status is UNLINKED, it represents the time it was removed from the client system. If not provided, assumed to be the current date/time of the request. |
| status | Link status | String | Optional. LINKED (default if not provided) = account has been linked to that business unit. UNLINKED = Account was previously linked, but is no longer linked. |
Response
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| linkId | Unique ID for the link | String | Suggest that this be an ID that references the link in the client's system like an account number. Do not put sensitive data here as it will be shown in other views. |
| businessUnit | Name of the business unit | String | The valid values come from a configuration table |
| dateLinked | ISO-formatted date and time | String | This represents the date/time this link was created in the client system. If the status is UNLINKED, it represents the time it was removed in the client system. |
| status | Status of the link between the account and the business unit | Enum: "LINKED" or "UNLINKED" | LINKED = account has been linked to that business unit UNLINKED = account was previously linked to that BU, but is no longer linked |
Request
Responses
- 200
- 400
200 - Link Added or Updated
Response Headers
Date
Example:
Fri, 18 Dec 2020 15:27:27 GMTContent-Length
Example:
99Connection
Example:
keep-alivex-amzn-RequestId
Example:
15bfcfb4-9a3a-4fec-8a7a-2b485e88853bReferrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000Feature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netx-amz-apigw-id
Example:
XwSO9G1zIAMFhoA=cache-control
Example:
no-cache, no-store, must-revalidateX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-5fdcca5f-2ed680fb551067b85600759b;Sampled=0400 - Invalid Status