Journeys
  • Introduction
  • Getting access
  • Authentication
  • Terminology
  • API reference
    • Authorization
      • Authorize
    • Company
      • Retrieve company
      • Update company
    • Company lists
      • Retrieve company list
      • List company lists
      • Create company list
      • Update company list
      • Delete company list
    • Journeys
      • List journeys
      • Retrieve journey
      • Delete journey
      • Edit journey
    • Journey actions
      • List journey actions
      • Retrieve journey action
      • Delete journey action
    • Traveller journeys
      • List traveller journeys
      • Retrieve traveller journey
      • Retrieve actions
      • Start traveller journey
      • Create traveller journey
      • Delete traveller journey
    • Traveller journey actions
      • List journey traveller actions
      • Retrieve journey traveller action
    • Users
      • Invite
      • List users
      • Create user
      • Retrieve user
      • Delete user
      • Update user
  • Specification
Powered by GitBook
On this page
  1. API reference
  2. Company

Update company

PreviousRetrieve companyNextCompany lists

Last updated 1 year ago

Request samples

{
   "name":"The New Shire",
   "websiteUrl":"https://thenewshire.50skills.com",
   "logo":"https://s3-eu-west-1.amazonaws.com/50-journeys-static/public/jZzwxywD/logo/theshire-logo-v2.png"
}
import requests
response = requests.patch(
    "https://journeys-api.50skills.app/v1/company/",
    json={
        "name": "The Shire",
        "websiteUrl": "https://thenewshire.50skills.com",
        "logo": "https://s3-eu-west-1.amazonaws.com/50-journeys-static/public/jZzwxywD/logo/theshire-logo-v2.png"
    }
)
print(response.json())                 
fetch("https://journeys.api.50skills.com/v1/company/", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "name": "The New Shire",
    "websiteUrl": "https://thenewshire.50skills.com",
    "logo": "https://s3-eu-west-1.amazonaws.com/50-journeys-static/public/jZzwxywD/logo/theshire-logo-v2.png"
  })
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));;                 

Response samples

{
   "name":"The New Shire",
   "websiteUrl":"https://thenewshire.50skills.com",
   "logo":"https://s3-eu-west-1.amazonaws.com/50-journeys-static/public/jZzwxywD/logo/theshire-logo-v2.png"
}

Edit company

patch

Edit the company

Authorizations
Body
namestringOptionalDefault: The New Shire
website_urlstringOptionalDefault: https://50skills.thenewshire.com
logostring ยท uriOptionalDefault: https://s3-eu-west-1.amazonaws.com/50-journeys-static/public/jZxwxtwl/logo/the-new-theshire-logo-v2.png
Responses
200Success
application/json
401
Unauthorized
404
Not found
{
  "name": "The New Shire",
  "website_url": "https://50skills.thenewshire.com",
  "logo": "https://s3-eu-west-1.amazonaws.com/50-journeys-static/public/jZxwxtwl/logo/the-new-theshire-logo-v2.png"
}