Update organization
PUT
/manage/organizations/:idUpdate an organization. Only its admins can do this.
| Auth | Login required |
|---|
Path parameters
idstringrequiredOrganization ID.
Request body
namestringOrganization name (required); no length limit.
typestringOne of COMPANY / STARTUP / SCHOOL / GOVERNMENT / NON_PROFIT / RESEARCH / VENTURE_CAPITAL / MEDIA / ACCELERATOR / EDUCATIONAL / CONSULTING / COMMUNITY (required on create).
descriptionstringDescription; no length limit.
logoUrlstringLogo image URL; must be a valid URL.
websiteUrlstringWebsite URL; must be a valid URL.
slugstring3–200 characters; lowercase alphanumerics, hyphens and underscores only (^[a-z0-9-_]+$). Must be unique.
logoDarkUrlstringDark-theme logo URL; must be a valid URL.
Request
curl https://api.4s.link/manage/organizations/ID \-X PUT \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"name": "Example Inc.","description": "..."}'
Example response
{"id": "o1a2b3c4-...","slug": "example-inc","name": "Example Inc.","type": "COMPANY","description": "...","logoUrl": "https://.../logo.png","logoDarkUrl": null,"websiteUrl": "https://example.com"}