Update an Organization

PUT {{cryptr_service_url}}/api/v2/organizations/:org_domain

You can’t update the domain of an Organization. If you need to, you have to create a new one.

RETURNS

Returns theΒ OrganizationΒ if the update succeeded. Returns an error if the update parameters are invalid (e.g., specifying an invalid code or an invalid source).

Request Body

[{"name"=>"name", "value"=>"Weekly Motion", "datatype"=>"string"}, {"name"=>"allowed_email_domains[]", "value"=>"weekly-motion.co", "datatype"=>"string"}]

RESPONSES

status: OK

{"__type__":"Organization","allowed_email_domains":["cpromo.com"],"color":"green-500","domain":"cpromo","environments":[{"name":"sandbox","status":"up"},{"name":"production","status":"down"}],"icon_logo_url":null,"inline_logo_url":null,"inserted_at":"2024-07-23T15:55:20","locale":"en-US","name":"Cpromo au quotidien","status":{"errors":[],"estimated_time_to_complete_in_seconds":null,"progress_in_percentage":null,"state":"terminated"},"timezone":null,"updated_at":"2024-07-23T16:27:35"}