Update Organisation

Update Organisation

PATCH https://environment.monterosa.cloud/v2/organisations/:id

Path Parameters

NameTypeDescription

id

string

Organisation ID

Headers

NameTypeDescription

Content-type

string

application/vnd.api+json

Authorisation

string

Bearer token

Request Body

NameTypeDescription

image_url

string

Image URL

name

string

Organisation name

{
  "data": {
    "id": "665d5c0e-0cc4-44d7-b28d-5d3c8dba3466",
    "type": "organisations",
    "attributes": {
      "name": "M/IC",
      "image_url": "//d3mssdvj2sslxw.cloudfront.net/organisations/66/665d5c0e-0cc4-44d7-b28d-5d3c8dba3466/03spongebob_xp-articleLarge.jpg"
    },
    "relationships": {
      "brands": {
        "links": {
          "related": "https://environment.lvis.io/api/v2/organisations/665d5c0e-0cc4-44d7-b28d-5d3c8dba3466/brands"
        }
      },
      "members": {
        "links": {
          "related": "https://environment.lvis.io/api/v2/organisations/665d5c0e-0cc4-44d7-b28d-5d3c8dba3466/members"
        }
      }
    },
    "links": {
      "self": "https://environment.lvis.io/api/v2/organisations/665d5c0e-0cc4-44d7-b28d-5d3c8dba3466"
    }
  }
}

Example

// POST /api/v2/organisations/665d5c0e-0cc4-44d7-b28d-5d3c8dba3466
// Host: environment.monterosa.cloudo
// Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
// Content-Type: application/vnd.api+json

{
  "data": {
    "type": "organisations",
    "attributes": {
      "name": "Organisation Name",
      "image_url": "https://monterosa.co.uk/organisation-image.jpg"
    }
  }
}