TypeScript
const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({name: '<string>', slug: '<string>', logo: '<string>', metadata: {}}) }; fetch('http://localhost:4005/v1/arc/organizations', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "logo": "<string>", "metadata": {}, "deletedAt": "2023-11-07T05:31:56Z", "userRole": "owner" }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Create a new organization. The creator becomes the owner.
1 - 255
^[a-z0-9-]+$
Show child attributes
Organization created successfully
true
Was this page helpful?