Update the details of an existing organization by their unique slug.
Request
Put
PUT /v1/organization/:slug
Path Parameter
- slug
stringReplace
:slugwith the organization's unique slug in the request URL.
Body
- name
string>= 1 characters (required)
- website
string>= 1 characters
- location
string>= 1 characters
- address
string>= 1 characters
- industry_id
integer - description
string>= 1 characters
- xing_url
string>= 1 characters
- linkedin_url
string>= 1 characters
- owner_id
integer(required)
- created_by
integer - tags
stringAllowed Comma-separated values:- [Java,Leadership]
- custom fields:
Array[object]For Example:
"id": 1,
"value": "textfeild"
Response
201
Body
- id
numberExample: 28
- slug
stringExample: organization_d1d6d8323f07a6615f95
- name
stringExample: Anjali kotwani
- website
stringExample: google.com
- location
stringExample: indore
- Address
stringExample: pipariya
- tags
stringExample: [leader,java]
- industry
objectExample:
"id": 1,
"name": "it", - description
stringExample: Experienced software engineer with a focus on frontend development.
- profile_picture
stringExample: img.jpg
- owner
objectExample:
"id": 17" - created_at
string (ISO 8601 date)Example: 2015-05-15T00:00:00Z
- updated_at
string (ISO 8601 date)Example: 2015-05-15T00:00:00Z
- created_by
objectExample:
"id": 1 - updated_by
objectExample:
"id": 1 - socials
objectExample:
"linkedin": "anjalilinkedin.com",
"xing": "anjali.com" - custom fields:
objectExample:
"id": 1,
"field_name": "textfeild",
"field_type": "string",
"value": "anjali"
401
Body
- unauthorised
422
Body
- Unprocessable Entity
Response Example
{
"id": 6,
"slug": "organization_931819e6d2e065d355ab",
"name": "TEs contact ",
"website": "",
"location": "",
"address": "",
"tags": null,
"industry": null,
"description": "",
"profile_picture": "",
"owner": {
"id": 1
},
"created_at": "2024-05-24T20:06:58.000Z",
"updated_at": "2024-05-24T20:06:58.000Z",
"created_by": {
"id": 1
},
"updated_by": {
"id": 1
},
"socials": {
"linkedin": "",
"xing": ""
},
"custom_fields": [
{
"id": 1,
"field_name": "C Text asasa",
"field_type": "text",
"value": "Some custom value"
},
{
"id": 2,
"field_name": "C Date",
"field_type": "date",
"value": null
}
]
}