Piloty API
  • Introduction
  • 🔓Authentication
  • 🔭Scopes and Roles
  • ⏲️Rate limits
  • 📂Pagination
  • ⁉️Errors and Status
  • 🏢COMPANIES API
    • Companies
      • GET : Companies by media
      • GET : Retrieve Company
      • POST : Create company
      • PATCH : Update company
    • Company 's fields
      • GET : List Sectors
      • GET : List Sizes
  • 💼JOBS API
    • Jobs
      • GET : Jobs by media
      • GET : Retrieve job
      • GET : Jobs opened by media
      • GET : Retrieve job opened
      • POST : Create job
      • PATCH : Update job
    • Job's fields
      • GET : List Contracts
      • GET : List Experiences
      • GET : List Educations
      • GET : List Remote policies
      • GET : List Worktimes
      • GET : List Job Categories
  • 👤USERS API
    • Users
      • GET : Users by media
  • 🧑‍💼CANDIDATES API
    • Candidates
      • GET : User candidates by media
      • GET : Job alerts
      • GET : Favoris
    • Opportunities
      • POST : Job applications - v2
      • GET : Job applications
      • 🛑Deprecated - POST : Job applications - v1
  • 📕Changelog
Powered by GitBook
On this page
  1. COMPANIES API
  2. Companies

PATCH : Update company

This endpoint lets you update one company for a given media.

PreviousPOST : Create companyNextCompany 's fields

Last updated 1 month ago

This endpoint requires :

• brand_admin, media_admin or media_partner roles.

• r_w_companies scope.

Important informations

  • This endpoint have a short 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"

sector_id

string

size_id

string

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

You can add a logo to a company by add to the body : logo_url as string url OR logo as file

[
     "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
        }
]
{
    "status": 401,
    "error": "unauthorized-limitation",
    "errorMessage": "Unauthorized"
}
{
    "status": 409,
    "error": "company-already-existed",
    "errorMessage":"Company already exists; Please contact support@piloty.fr if you want to add this company"
}

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'

Can be multiple separate by ; from

from

🏢
Rate limits
List Sectors
List Sizes