Rename an organization
PATCH
/api/orgs/{org}
const url = 'https://api-dev.wrktr.com/api/orgs/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api-dev.wrktr.com/api/orgs/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Owners only. Changes the display name; the slug stays.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Examplegenerated
{ "name": "example"}Responses
Section titled “Responses”OrgInfo
Media typeapplication/json
object
slug
required
string
name
required
string
personal
required
boolean
role
required
string
Example
{ "role": "owner"}Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}Forbidden
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Forbidden"}OrgNotFound
Media typeapplication/json
object
_tag
required
string
org
required
string
Example
{ "_tag": "OrgNotFound"}