Create Organization Assignment
With this method, you create a new business partner of type organization and relate it to other entities in one step
Onboarding an organization consists of the following steps:
- Creating a new ObjectGroup instance underneath the tenant root object group (only if no object group Id is provided).
- Creating a new organization.
- Creating a relationship between the onboarding organization and the newly created organization.
- Creating a new BPRole instance of type ROLE_CUSTOMER_OF_CUSTOMER
Although assigning the new organization to an object group is an essential step during the onboarding process, it is still posssible to create the new organization without providing an object group. In that case, the system creates a new object group with the tenant root object group as its parent object group. The new organization is then assigned to this object group.
Request
URI: /Organizations
HTTP Method: POST
Permissions:
<tenant>.org.c
<bp>.r
<bp>.c
<bp>.tenant.r
Request Header Fields
| Name | Required | Description |
|---|---|---|
| X-CSRF-Token | Yes | Cross-site request forgery token |
Request Parameters
| Name | Required | Type | Description | Send As |
|---|---|---|---|---|
| organizationName1 | Yes | string | Semantic name of the organization | JSON |
| emailAddress |
Yes |
string |
An email address used to get in contact with the organization. |
JSON |
| tenant | No | string | If omitted, tenant of currently logged on user is used. | JSON |
Request Example
/Organizations
Payload
Only the media/type JSON is supported. The JSON for this method has the following structure:
{"organization":{
"basicData":{
"businessPartnerID":{"type": "string", "maxLength": 32},
"tenant":{"type": "string", "maxLength": 36},
"etag":{"type": "string"}
},
"organizationName":{
"organizationName1":{"type": "string", "maxLength": 255, "required": true },
"organizationName2":{"type": "string", "maxLength": 255 }
},
"communicationData":{
"emailAddress":{ "type": "string", "maxLength": 255, "required": true},
"mobileDestinationLocation":{ "type": "string", "maxLength": 2 },
"mobilePhoneNumber":{ "type": "string", "maxLength": 127 },
"landlineDestinationLocation": { "type": "string", "maxLength": 2 },
"landlinePhoneNumber": { "type": "string", "maxLength": 127 },
"landlinePhoneNumberExtension": { "type": "string", "maxLength": 127 },
"streetName": { "type": "string", "maxLength": 255 },
"houseNumber": { "type": "string", "maxLength": 10 },
"cityName": { "type": "string", "maxLength": 255 },
"postalCode": { "type": "string", "maxLength": 10 },
"country": { "type": "string", "maxLength": 2 },
"countryDescription": { "type": "string", "maxLength": 60, "readOnly" : true },
"region": { "type": "string","maxLength": 3 },
"regionDescription": { "type": "string", "maxLength": 60, "readOnly" : true }
},
"objectGroup": { "type": "string"}
},
"onboardingOrganization":{
"businessPartnerID": { "type": "string", "maxLength": 32 }
}
}
Response
Format: JSON
Response Header Fields
|
Name |
Type |
Description |
|---|---|---|
|
Location |
string |
Path to the newly created Organization |
|
Etag |
string |
entity tag of the newly created Organization instance |
Response Status and Error Codes
| Code | Reason |
|---|---|
| 201 | Organization created successfully |
|
400 |
Bad request (for example, required field value missing) |