Create Organisation

Create Organisation

POST https://environment.monterosa.cloud/v2/organisations

Headers

NameTypeDescription

Content-Type

string

application/vnd.api+json

Authentication

string

Bearer token.

Request Body

NameTypeDescription

image_url

string

Organisation image url

name

string

Organisation name

{
  "data": {
    "id": "ee66fbf6-7d91-4f38-bb21-80eb426aefbb",
    "type": "organisations",
    "attributes": {
      "name": "Monterosa",
      "image_url": "https://monterosa.co.uk/public/logo.jpg",
    },
    "relationships": {
      "brands": {
        "links": {
          "related": "https://environment.lvis.io/api/v2/organisations/ee66fbf6-7d91-4f38-bb21-80eb426aefbb/brands"
        }
      },
      "members": {
        "links": {
          "related": "https://environment.lvis.io/api/v2/organisations/ee66fbf6-7d91-4f38-bb21-80eb426aefbb/members"
        }
      }
    },
    "links": {
      "self": "https://environment.lvis.io/api/v2/organisations/ee66fbf6-7d91-4f38-bb21-80eb426aefbb"
    }
  }
}

Example

// POST /api/v2/organisations
// Host: environment.monterosa.cloud
// Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
// Content-Type: application/vnd.api+json

{
  "data": {
    "type": "organisations",
    "attributes": {
      "name": "Monterosa",
      "image_url": "https://monterosa.co.uk/public/logo.jpg"
    }
  }
}