How to add Custom Properties to Organization.
Method: POST
URL: https://rethink-back-api-prod.azurewebsites.net/api/v1/customproperties/:organizationId
Parameters:
- Path Variables
o organizationId: the ID of the organization you would like to add custom properties for
Headers: - Referer: your platform URL
- Authorization: Bearer token
Body: JSON object defining custom properties to add. “CustomProperties” is a list of objects.
Response: 204 No Content - No response body will be returned.
Examples: If using the example from 3 above, and I want to add a custom property value for “Test List” for organization with Id = ‘652482A2-B28B-4009-8338-8879E8F0C766’, I would make the following request body:
{
"OrganizationId": "652482A2-B28B-4009-8338-8879E8F0C766",
"ObjectType": "Organization",
"CustomProperties": [
{
"CustomPropertiesTemplateId": "0AB1535A-146D-4191-9A85-03F9777FE74A",
"Value": "Item1"
},
{
"CustomPropertiesTemplateId": “{{some other template id}}”
"Value": “{{value}}”
}
]
} - Value “Organization” for “ObjectType” is required
- Value for “CustomPropertiesTemplateId” matches available template for this organization
- Value for “Value” is in the available options defined by the template
1
-1
Was this article helpful?
0 out of 1 found this helpful
Articles in this section
- Reporting API - Overview
- Reporting API - Requesting Access
- Reporting API - Data Model
- Reporting API - How to map your Invoice Data
- Reporting API - Detailed Invoice Line Items
- Reporting API - How to identify Organizations in your Sales Channel
- Reporting API - Currencies within the Invoices
- Reporting API : Preview invoices in status 'New'
- Reporting API - Using updatedDate Filters
- Reporting API - Viewing Vendor Invoice Row JSONs via API
Add comment
Please sign in to leave a comment.