POST update organization data
Updates the organization details. The authenticated user must own the organization.
Resource URL:
https://api.priotice.se/rest/{auth}/organization/update
POST parameters:
Variable name (case sensitive) |
Required | Variable type | Note |
---|---|---|---|
OrgID | Required | integer | Organization identifier (OrgID parameter returned by Get Organization method) |
Name | Optional | string | Organization name |
Address | Optional | string | Organization street address |
City | Optional | string | Organization city |
Zipcode | Optional | string | Organization zip code |
Country | Optional | string | Organization country |
VAT | Optional | string | Organization VAT |
Language | Optional | string | Organization language, possible values: English, Swedish |
AdminName | Optional | string | Admin full name |
AdminEmail | Optional | string | Admin contact email address, valid email required |
MobilePhoneNumber | Optional | string | Mobile phone number, including country code |
CR_Orange_Level | Optional | decimal | Between 0.00 and 1.00. Default: 0.15 |
CR_Red_Level | Optional | decimal | Between 0.00 and 1.00. Default: 0.25 |
LogotypeFileName | Optional | string | The logotype filename. |
BackgroundColor | Optional | string | Background color for navbar. |
NavbarTextColor | Optional | string | Text color for navbar. |
Ignored parameters
OrgID, SubscriptionExpires, ParticipantBalance, ApiAuth, SubscriptionType
will be ignored silently because they cannot be updated via REST API.
Data returned
If all the parameters meet the requirements and are valid, it will return a success message, else it will return an error code and message detailing the error.
Example request
POST https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/organization/update
Example response:
{ "Status": "success", "Data": { "OrgID": 3564 } }
CURL example:
curl --data "OrgID=11&Address=Updated%20Address" https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/organization/update