TypeScript
const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({name: '<string>', logo: '<string>', metadata: {}}) }; fetch('http://localhost:8000/api/v1/organizations/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "logo": "<string>", "metadata": {}, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Update organization details. Only admins can update organizations.
1
Show child attributes
Organization updated
true
Was this page helpful?