PATCH : Update company
This endpoint lets you update one company for a given media.
Important informations
This endpoint have a
short
rate limits → Rate limits
For Data management purpose, Only one company with unique name
a or/and domain_url
Create new company
PATCH
https://api.piloty.fr/companies
Name
Type
Description
company-public-id*
Strins
Public id of the company
Request Body
Name
Type
Description
media_public_id*
string
eg: "acme_media"
name
string
eg: "ACME Company"
description
string
eg: "Lorem Ipsum ..."
logo_url
string
eg : "https://domain.com/url_path"
logo
file
Image file format are accepted
To use with content-type : multipart/form-data
[
"status":201,
"company":{
"id": "6295debf398f8985f09dc99d",
"name": "Trusty",
"public_id": "trusty",
"size": "62cc627cf40fc5d45819d8f8",
"sectors": [
"630f96baa4ef90ff2a51ee34"
],
"content": {
"visual": {
"logo": "https://piloty-public-staging.s3.amazonaws.com/companiesDocuments/6295debf398f8985f09dc99d/6295debf398f8985f09dc99d_logo_1710944607812"
},
"description":"Lorem Ipsum ...",
"language": "fr"
},
"is_published": true,
"is_vme_page_published" : false
}
]
Request example with application/x-www-form-urlencoded
curl -X PATCH -G "https://api-piloty.fr/companies
-H "Authorization: Bearer PILOTY_TOKEN" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d @- <<EOF
{
"media_public_id":"acme_media",
"name": "Acme Company",
"domain_url": "acme-company.com",
"sector_id": "querty1234",
"size_id": "querty1234",
}
EOF
Request example with multipart/form-data
curl -X PATCH -G "https://api-piloty.fr/companies
-H 'Authorization: Bearer PILOTY_TOKEN' \
-H 'Content-Type: multipart/form-data'
-F 'media_public_id=acme_media'
-F 'name=ACME Company'
-F 'domain_url=company.com'
-F 'size_id=size_123' \
-F 'sector_id=sector_123' \
-F 'description=Company description'
-F 'logo=@/path/to/logo.png'
-F 'logo_url=https://example.com/logo.png'
Last updated