Create Workspace

POST {{baseUrl}}/api/v2/workspaces

Allowed For

  • Admins

Request Body

{"workspace"=>{"conditions"=>{"all"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "any"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, "description"=>"<string>", "macros"=>["<number>", "<number>"], "ticket_form_id"=>"<number>", "title"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;workspace&quot;:{&quot;activated&quot;:true,&quot;apps&quot;:[],&quot;conditions&quot;:{&quot;all&quot;:[{&quot;field&quot;:&quot;ticket_form_id&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;360000014173&quot;}],&quot;any&quot;:[]},&quot;created_at&quot;:&quot;2018-11-13T19:08:13Z&quot;,&quot;description&quot;:&quot;Test rules&quot;,&quot;id&quot;:3133,&quot;macro_ids&quot;:[360005374974],&quot;position&quot;:1,&quot;prefer_workspace_app_order&quot;:true,&quot;selected_macros&quot;:[{&quot;actions&quot;:[{&quot;field&quot;:&quot;status&quot;,&quot;value&quot;:&quot;solved&quot;}],&quot;active&quot;:true,&quot;created_at&quot;:&quot;2018-02-08T23:45:30Z&quot;,&quot;description&quot;:null,&quot;id&quot;:360005374974,&quot;position&quot;:9999,&quot;restriction&quot;:{&quot;id&quot;:360002226093,&quot;ids&quot;:[360002226093],&quot;type&quot;:&quot;Group&quot;},&quot;title&quot;:&quot;Close and redirect to topics&quot;,&quot;updated_at&quot;:&quot;2018-11-08T22:27:00Z&quot;,&quot;url&quot;:&quot;https://{subdomain}.zendesk.com/api/v2/macros/360005374974.json&quot;,&quot;usage_7d&quot;:0}],&quot;ticket_form_id&quot;:360000014173,&quot;title&quot;:&quot;Test Workspace 1&quot;,&quot;updated_at&quot;:&quot;2018-12-17T22:37:40Z&quot;,&quot;url&quot;:&quot;https://{subdomain}.zendesk.com/api/v2/workspaces.json&quot;}}