Create a BPUserRelationship

With this method, you create a new relationship between business partner and a user

To create a new relationship, you need to provide the IDs of the business partner and the user. This data must be provided via the respective payload fields of this method.

Request

URI: /BPUserRelationships

HTTP Method: POST

Permissions:

<bp>.c

<bp>.tenant.r

Request Header Fields

Name Required Values
X-CSRF-Token Yes Cross site request forgery token

Request Parameters

None.

Request Example

/BPUserRelationships

Payload

Only media type JSON is supported. The JSON for this method has the following structure:

{
 "relationshipID"    : { "type": "string", "maxLength": 32 },
 "businessPartnerID" : { "type": "string", "minLength": 32, "maxLength": 32, "required": true },
 "userNameID"   	: { "type": "string", "minLength": 1, "maxLength": 255, "required": true }
}

Response

Response Header Fields

Name Description
Location Path to the the newly created relationship

Response Status and Error Codes

Code Description
201 Relationship created successfully