NAV Navigation
Shell HTTP JavaScript Node.JS Ruby Python Java Go

Truelinked API v0.0.1

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

Welcome to the Truelinked API reference. The Truelinked API is organized around the REST mothodology, and it uses resource-oriented URLs, and common HTTP response codes to indicate API errors. All requests are authenticated using an api-key.

Email: API Support

Action User Types

Action User Types for any resource

Index Action_user_types

Code samples

# You can also use wget
curl -X GET /action_user_types \
  -H 'Accept: application/json'

GET /action_user_types HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/action_user_types',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/action_user_types',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/action_user_types',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/action_user_types', params={

}, headers = headers)

print r.json()

URL obj = new URL("/action_user_types");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/action_user_types", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /action_user_types

Retrieve list of Action_user_types

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
id query array[integer] false Ids of Action user type to filter by
sort query string false Sort the listed Action user type

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "name": "string",
      "slug": "string"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok Action_user_typeIndexResource

Activities

Activities of user

Index Activities

Code samples

# You can also use wget
curl -X GET /activities \
  -H 'Accept: application/json'

GET /activities HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/activities',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/activities',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/activities',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/activities', params={

}, headers = headers)

print r.json()

URL obj = new URL("/activities");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/activities", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /activities

Retrieve list of Activities

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
sort query string false Sort Users
query query string false Wildcard query to filter resources by
id query array[integer] false List of activities
activity_type query array[string] false Types of Activity to filter by
entity_type query array[string] false Types of Entities for activities to filter by
profile_id query array[integer] false Ids of Profile (owner) to filter by
user_id query array[integer] false Ids of user (owner) to filter by
entity_id query array[integer] false Ids of entities to filter by

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "activityType": "string",
      "userId": 0,
      "profileId": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "invoker": {
        "user": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "profile": {
          "id": 0,
          "name": "string",
          "slug": "string"
        }
      },
      "entity": {
        "id": 0,
        "name": "string"
      },
      "entityDiff": {},
      "previousVersion": {},
      "entityType": "string",
      "metaInfo": {}
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok ActivitieIndexResource

addons

Create Addons

Code samples

# You can also use wget
curl -X POST /addons \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /addons HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/addons',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/addons',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/addons',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/addons', params={

}, headers = headers)

print r.json()

URL obj = new URL("/addons");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/addons", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /addons

Create Addon

Body parameter

{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}

Parameters

Name In Type Required Description
body body AddonResource false none

Example responses

200 Response

{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}

Responses

Status Meaning Description Schema
200 OK ok AddonResource

Index Addons

Code samples

# You can also use wget
curl -X GET /addons \
  -H 'Accept: application/json'

GET /addons HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/addons',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/addons',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/addons',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/addons', params={

}, headers = headers)

print r.json()

URL obj = new URL("/addons");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/addons", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /addons

Retrieve list of Addons

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
sort query string false Sort Users
query query string false Wildcard query to filter resources by
id query array[integer] false Addon id

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "external_id": "string",
      "name": "string",
      "slug": "string",
      "invoice_name": "string",
      "status": "string",
      "charge_type": "string",
      "currency_code": "string",
      "price": "string",
      "pricing_model": "string",
      "period": "string",
      "period_unit": "string",
      "enabled_in_portal": "string",
      "is_shippable": "string",
      "taxable": "string",
      "show_description_in_invoices": "string",
      "show_description_in_quotes": "string",
      "addonTiers": [
        {
          "starting_unit": "string",
          "ending_unit": "string",
          "price": "string",
          "starting_unit_in_decimal": "string",
          "ending_unit_in_decimal": "string",
          "price_in_decimal": "string"
        }
      ],
      "subscriptions": [
        {
          "id": 0,
          "name": "string"
        }
      ],
      "resource_version": "string"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AddonIndexResource

Delete Addons(id0)

Code samples

# You can also use wget
curl -X DELETE /addons/{id0} \
  -H 'Accept: application/json'

DELETE /addons/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/addons/{id0}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/addons/{id0}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/addons/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/addons/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/addons/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/addons/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /addons/{id0}

Delete Addon

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}

Responses

Status Meaning Description Schema
200 OK ok AddonResource

Get Addons(id0)

Code samples

# You can also use wget
curl -X GET /addons/{id0} \
  -H 'Accept: application/json'

GET /addons/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/addons/{id0}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/addons/{id0}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/addons/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/addons/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/addons/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/addons/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /addons/{id0}

Get Addon

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}

Responses

Status Meaning Description Schema
200 OK ok AddonResource

Update Addons(id0)

Code samples

# You can also use wget
curl -X PUT /addons/{id0} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /addons/{id0} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/addons/{id0}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/addons/{id0}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/addons/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/addons/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/addons/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/addons/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /addons/{id0}

Update Addon

Body parameter

{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}

Parameters

Name In Type Required Description
id0 path string true none
body body AddonResource false none

Example responses

200 Response

{
  "id": 0,
  "external_id": "string",
  "name": "string",
  "slug": "string",
  "invoice_name": "string",
  "status": "string",
  "charge_type": "string",
  "currency_code": "string",
  "price": "string",
  "pricing_model": "string",
  "period": "string",
  "period_unit": "string",
  "enabled_in_portal": "string",
  "is_shippable": "string",
  "taxable": "string",
  "show_description_in_invoices": "string",
  "show_description_in_quotes": "string",
  "addonTiers": [
    {
      "starting_unit": "string",
      "ending_unit": "string",
      "price": "string",
      "starting_unit_in_decimal": "string",
      "ending_unit_in_decimal": "string",
      "price_in_decimal": "string"
    }
  ],
  "subscriptions": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "resource_version": "string"
}

Responses

Status Meaning Description Schema
200 OK ok AddonResource

Agencies

Agencies

Aggregations Agencies.aggregations

Code samples

# You can also use wget
curl -X UNDEFINED /agencies/aggregations \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

UNDEFINED /agencies/aggregations HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/aggregations',
  method: 'undefined',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/aggregations',
{
  method: 'UNDEFINED',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.undefined '/agencies/aggregations',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.undefined('/agencies/aggregations', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/aggregations");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("UNDEFINED");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("UNDEFINED", "/agencies/aggregations", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

UNDEFINED /agencies/aggregations

Body parameter

{}

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
id query array[integer] false Ids of Agency to filter by
slug query string false Agency slug
sort query string false Sort the listed agencies
status query string false Filter by agency statuses
profile_id query array[integer] false Id of profiles of agency
country_id query array[integer] false Id of the given country
show_hidden query boolean false Return hidden agencies
show_invalid query boolean false Boolean query for showing non valid resources
visibility query array[string] false Visibility
validation_status query array[string] false List of Validation status to filter by
body body AgencieAggregationResource false none

Example responses

200 Response

{}

Responses

Status Meaning Description Schema
200 OK ok AgencieAggregationResource

Create Agencies

Code samples

# You can also use wget
curl -X POST /agencies \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies

Create Agencie

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}

Parameters

Name In Type Required Description
body body AgencieResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieResource

Index Agencies

Code samples

# You can also use wget
curl -X GET /agencies \
  -H 'Accept: application/json'

GET /agencies HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies

Retrieve list of Agencies

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
id query array[integer] false Ids of Agency to filter by
slug query string false Agency slug
sort query string false Sort the listed agencies
status query string false Filter by agency statuses
profile_id query array[integer] false Id of profiles of agency
country_id query array[integer] false Id of the given country
show_hidden query boolean false Return hidden agencies
show_invalid query boolean false Boolean query for showing non valid resources
visibility query array[string] false Visibility
validation_status query array[string] false List of Validation status to filter by

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "has_admin": true,
      "is_hidden": true,
      "name": "string",
      "slug": "string",
      "url": "string",
      "description": "string",
      "summary": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "language": {
        "id": 0,
        "lang": "string",
        "name": "string"
      },
      "country": {
        "id": 0,
        "name": "string",
        "slug": "string"
      },
      "artistsCount": 0,
      "address": "string",
      "validity": true,
      "entityStatus": "string",
      "isPro": true,
      "visibility": "string",
      "createdBy": {
        "id": 0,
        "first_name": "string",
        "last_name": "string"
      },
      "lastValidationBy": {
        "id": 0,
        "first_name": "string",
        "last_name": "string"
      },
      "validationStatus": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieIndexResource

Delete Agencies(id0)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0} \
  -H 'Accept: application/json'

DELETE /agencies/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}

Delete Agencie

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieResource

Get Agencies(id0)

Code samples

# You can also use wget
curl -X GET /agencies/{id0} \
  -H 'Accept: application/json'

GET /agencies/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}

Get Agencie

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieResource

Update Agencies(id0)

Code samples

# You can also use wget
curl -X PUT /agencies/{id0} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/{id0} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/{id0}

Update Agencie

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "has_admin": true,
  "is_hidden": true,
  "name": "string",
  "slug": "string",
  "url": "string",
  "description": "string",
  "summary": "string",
  "image": {
    "original": "string",
    "large": "string",
    "medium": "string",
    "small": "string",
    "file": {
      "content": "string",
      "size": 0
    }
  },
  "language": {
    "id": 0,
    "lang": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "artistsCount": 0,
  "address": "string",
  "validity": true,
  "entityStatus": "string",
  "isPro": true,
  "visibility": "string",
  "createdBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "lastValidationBy": {
    "id": 0,
    "first_name": "string",
    "last_name": "string"
  },
  "validationStatus": {
    "id": 0,
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieResource

Create Agencies(id0).admin_access_requests

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/admin_access_requests \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/admin_access_requests HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/admin_access_requests',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/admin_access_requests',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/admin_access_requests',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/admin_access_requests', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/admin_access_requests");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/admin_access_requests", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/admin_access_requests

Create AgencieAdmin_access_request

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieAdmin_access_requestResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAdmin_access_requestResource

Index Agencies(id0).admin_access_requests

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/admin_access_requests \
  -H 'Accept: application/json'

GET /agencies/{id0}/admin_access_requests HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/admin_access_requests',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/admin_access_requests',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/admin_access_requests',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/admin_access_requests', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/admin_access_requests");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/admin_access_requests", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/admin_access_requests

Retrieve list of AgencieAdmin_access_requests

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
phone_number query string false Filter by phone_number
sort query array[string] false Sort the listed agencies
agency_id query array[integer] false Id of agency of admin requests
status query string false Filter by request statuses
profile_id query array[integer] false Id of profiles of agency admin requests

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "profile": {
        "id": 0,
        "name": "string"
      },
      "token": "string",
      "expiredAt": "2021-11-26",
      "phoneNumber": "string",
      "phoneVerified": true,
      "status": "string",
      "email": "string",
      "emailVerified": true,
      "order": 0,
      "callDate": "2021-11-26",
      "comment": "string",
      "agency": {
        "id": "string",
        "name": "string",
        "slug": "string"
      }
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAdmin_access_requestIndexResource

Get Agencies(id0).admin_access_requests(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/admin_access_requests/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/admin_access_requests/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/admin_access_requests/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/admin_access_requests/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/admin_access_requests/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/admin_access_requests/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/admin_access_requests/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/admin_access_requests/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/admin_access_requests/{id1}

Get AgencieAdmin_access_request

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAdmin_access_requestResource

Update Agencies(id0).admin_access_requests(id1)

Code samples

# You can also use wget
curl -X PUT /agencies/{id0}/admin_access_requests/{id1} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/{id0}/admin_access_requests/{id1} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/admin_access_requests/{id1}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/admin_access_requests/{id1}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/{id0}/admin_access_requests/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/{id0}/admin_access_requests/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/admin_access_requests/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/{id0}/admin_access_requests/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/{id0}/admin_access_requests/{id1}

Update AgencieAdmin_access_request

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none
body body AgencieAdmin_access_requestResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "profile": {
    "id": 0,
    "name": "string"
  },
  "token": "string",
  "expiredAt": "2021-11-26",
  "phoneNumber": "string",
  "phoneVerified": true,
  "status": "string",
  "email": "string",
  "emailVerified": true,
  "order": 0,
  "callDate": "2021-11-26",
  "comment": "string",
  "agency": {
    "id": "string",
    "name": "string",
    "slug": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAdmin_access_requestResource

Create Agencies(id0).offices

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/offices \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/offices HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/offices',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/offices',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/offices',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/offices', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/offices");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/offices", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/offices

Create AgencieOffice

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieOfficeResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieOfficeResource

Index Agencies(id0).offices

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/offices \
  -H 'Accept: application/json'

GET /agencies/{id0}/offices HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/offices',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/offices',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/offices',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/offices', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/offices");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/offices", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/offices

Retrieve list of AgencieOffices

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
sort query array[string] false Sort the listed agencies
id query array[integer] false Ids of Agency to filter by
agency_id query array[integer] false Agency id
country_id query array[integer] false Country id
web query string false Filter by office web
continent_slug query string false Slug of continent
email query string false Email of office
address query string false Address of office
phone query string false Phones of office
fax query string false Fax of office

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "web": "string",
      "address": "string",
      "city": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "zipcode": "string",
      "contactPersons": [
        {
          "id": 0,
          "profileId": "string",
          "agentName": "string",
          "agentEmail": "string",
          "agentPhoneNumber": "string",
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ]
        }
      ],
      "contacts": {
        "email": "string",
        "phone": "string",
        "fax": "string",
        "mobilePhone": "string"
      },
      "agency": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "country": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "continent": {
          "slug": "string",
          "name": "string"
        }
      },
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieOfficeIndexResource

Delete Agencies(id0).offices(id1)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0}/offices/{id1} \
  -H 'Accept: application/json'

DELETE /agencies/{id0}/offices/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/offices/{id1}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/offices/{id1}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}/offices/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}/offices/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/offices/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}/offices/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}/offices/{id1}

Delete AgencieOffice

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieOfficeResource

Get Agencies(id0).offices(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/offices/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/offices/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/offices/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/offices/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/offices/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/offices/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/offices/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/offices/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/offices/{id1}

Get AgencieOffice

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieOfficeResource

Update Agencies(id0).offices(id1)

Code samples

# You can also use wget
curl -X PUT /agencies/{id0}/offices/{id1} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/{id0}/offices/{id1} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/offices/{id1}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/offices/{id1}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/{id0}/offices/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/{id0}/offices/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/offices/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/{id0}/offices/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/{id0}/offices/{id1}

Update AgencieOffice

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none
body body AgencieOfficeResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "web": "string",
  "address": "string",
  "city": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "zipcode": "string",
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "contacts": {
    "email": "string",
    "phone": "string",
    "fax": "string",
    "mobilePhone": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "country": {
    "id": 0,
    "slug": "string",
    "name": "string",
    "continent": {
      "slug": "string",
      "name": "string"
    }
  },
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieOfficeResource

Create Agencies(id0).invitations

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/invitations \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/invitations HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/invitations',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "profileTypeId": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "recipient": {
    "email": "string",
    "name": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "company": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/invitations',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/invitations',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/invitations', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/invitations");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/invitations", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/invitations

Create AgencieInvitation

Body parameter

{
  "id": 0,
  "profileTypeId": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "recipient": {
    "email": "string",
    "name": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "company": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieInvitationResource false none

Example responses

200 Response

{
  "id": 0,
  "profileTypeId": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "recipient": {
    "email": "string",
    "name": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "company": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieInvitationResource

Index Agencies(id0).invitations

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/invitations \
  -H 'Accept: application/json'

GET /agencies/{id0}/invitations HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/invitations',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/invitations',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/invitations',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/invitations', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/invitations");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/invitations", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/invitations

Retrieve list of AgencieInvitations

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
sort query string false Sort invitations
id query array[integer] false List of invitations
recipient_id query array[integer] false List of recipient ids (profileIds)
sender_id query array[integer] false List of sender ids (profileIds)
status query boolean false Status of invitation
active query boolean false Key of invitation type
agency_id query array[integer] false List of agency ids
profileTypeId query integer(int64) false invitation profile type
invitation_type_id query integer(int64) false invitation type id

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "profileTypeId": 0,
      "sender": {
        "user": {
          "id": 0
        },
        "profile": {
          "id": 0,
          "name": "string",
          "firstName": "string",
          "lastName": "string",
          "listName": "string",
          "slug": "string",
          "image": {
            "original": "string",
            "large": "string",
            "medium": "string",
            "small": "string",
            "file": {
              "content": "string",
              "size": 0
            }
          },
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string",
            "qualification": {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          },
          "profileType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          }
        }
      },
      "recipient": {
        "email": "string",
        "name": "string",
        "profile": {
          "id": 0,
          "name": "string",
          "firstName": "string",
          "lastName": "string",
          "listName": "string",
          "slug": "string",
          "image": {
            "original": "string",
            "large": "string",
            "medium": "string",
            "small": "string",
            "file": {
              "content": "string",
              "size": 0
            }
          },
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string",
            "qualification": {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          },
          "profileType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          }
        }
      },
      "agency": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "company": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "text": "string",
      "status": true,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieInvitationIndexResource

Get Agencies(id0).invitations(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/invitations/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/invitations/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/invitations/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/invitations/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/invitations/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/invitations/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/invitations/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/invitations/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/invitations/{id1}

Get AgencieInvitation

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "profileTypeId": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "recipient": {
    "email": "string",
    "name": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "listName": "string",
      "slug": "string",
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "qualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "profileType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      }
    }
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "company": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieInvitationResource

Create Agencies(id0).artists

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/artists \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/artists HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/artists',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/artists',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/artists',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/artists', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/artists");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/artists", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/artists

Create AgencieArtist

Body parameter

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieArtistResource false none

Example responses

200 Response

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieArtistResource

Index Agencies(id0).artists

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/artists \
  -H 'Accept: application/json'

GET /agencies/{id0}/artists HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/artists',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/artists',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/artists',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/artists', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/artists");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/artists", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/artists

Retrieve list of AgencieArtists

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
sort query string false Sort Users
query query string false Wildcard query to filter resources by
id query array[integer] false List of agency connections
artist_profile_id query array[integer] false List of profiles ids
request_id query array[integer] false List of request id
participant_id query array[integer] false List of participant id

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "agency": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        },
        "contacts": [
          {
            "id": 0,
            "privacyAttributes": [
              {
                "id": 0,
                "name": "string",
                "slug": "string",
                "description": "string",
                "privacyId": 0
              }
            ],
            "contactType": {
              "id": 0,
              "name": "string",
              "slug": "string"
            },
            "contact_category": "string",
            "sns": "string",
            "name": "string",
            "label": "string",
            "value": "string",
            "created_at": "2021-11-26",
            "updated_at": "2021-11-26"
          }
        ]
      },
      "agent": {
        "id": 0,
        "name": "string",
        "email": "string",
        "profile": {
          "id": 0,
          "name": "string",
          "email": "string",
          "slug": "string",
          "isPro": true,
          "image": {
            "original": "string",
            "large": "string",
            "medium": "string",
            "small": "string",
            "file": {
              "content": "string",
              "size": 0
            }
          },
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string"
          },
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          },
          "contacts": [
            {
              "id": 0,
              "privacyAttributes": [
                {
                  "id": 0,
                  "name": "string",
                  "slug": "string",
                  "description": "string",
                  "privacyId": 0
                }
              ],
              "contactType": {
                "id": 0,
                "name": "string",
                "slug": "string"
              },
              "contact_category": "string",
              "sns": "string",
              "name": "string",
              "label": "string",
              "value": "string",
              "created_at": "2021-11-26",
              "updated_at": "2021-11-26"
            }
          ]
        }
      },
      "contactPerson": {
        "id": 0,
        "profileId": "string",
        "agentName": "string",
        "agentEmail": "string",
        "agentPhoneNumber": "string"
      },
      "initiator": {
        "profile": {
          "id": 0,
          "name": "string",
          "slug": "string"
        }
      },
      "artist": {
        "email": "string",
        "phoneNumber": "string",
        "name": "string",
        "firstName": "string",
        "lastName": "string",
        "profession": {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        },
        "isApproved": true,
        "lastUpdateBy": {
          "id": 0,
          "name": "string"
        },
        "user": {
          "id": 0,
          "name": "string"
        },
        "profile": {
          "id": 0,
          "name": "string",
          "is_hidden": true,
          "isPro": true,
          "firstName": "string",
          "lastName": "string",
          "slug": "string",
          "contacts": [
            {
              "id": 0,
              "privacyAttributes": [
                {
                  "id": 0,
                  "name": "string",
                  "slug": "string",
                  "description": "string",
                  "privacyId": 0
                }
              ],
              "contactType": {
                "id": 0,
                "name": "string",
                "slug": "string"
              },
              "contact_category": "string",
              "sns": "string",
              "name": "string",
              "label": "string",
              "value": "string",
              "created_at": "2021-11-26",
              "updated_at": "2021-11-26"
            }
          ],
          "image": {
            "original": "string",
            "large": "string",
            "medium": "string",
            "small": "string",
            "file": {
              "content": "string",
              "size": 0
            }
          },
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string",
            "professionQualification": {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          },
          "professions": [
            {
              "id": 0,
              "slug": "string",
              "name": "string",
              "professionQualification": {
                "id": 0,
                "slug": "string",
                "name": "string"
              }
            }
          ],
          "agencies": [
            {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          ]
        }
      },
      "regions": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "exclusive": true,
          "agreementType": true,
          "isExcluded": true
        }
      ],
      "countries": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "exclusive": true,
          "agreementType": true,
          "isExcluded": true
        }
      ],
      "agencyConnectionProfessions": [
        {
          "id": 0,
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string",
            "professionQualification": {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          }
        }
      ],
      "addedBy": "string",
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieArtistIndexResource

Delete Agencies(id0).artists(id1)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0}/artists/{id1} \
  -H 'Accept: application/json'

DELETE /agencies/{id0}/artists/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/artists/{id1}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/artists/{id1}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}/artists/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}/artists/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/artists/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}/artists/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}/artists/{id1}

Delete AgencieArtist

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieArtistResource

Get Agencies(id0).artists(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/artists/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/artists/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/artists/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/artists/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/artists/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/artists/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/artists/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/artists/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/artists/{id1}

Get AgencieArtist

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieArtistResource

Update Agencies(id0).artists(id1)

Code samples

# You can also use wget
curl -X PUT /agencies/{id0}/artists/{id1} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/{id0}/artists/{id1} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/artists/{id1}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/artists/{id1}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/{id0}/artists/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/{id0}/artists/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/artists/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/{id0}/artists/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/{id0}/artists/{id1}

Update AgencieArtist

Body parameter

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none
body body AgencieArtistResource false none

Example responses

200 Response

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieArtistResource

Create Agencies(id0).agents

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/agents \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/agents HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agents',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agents',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/agents',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/agents', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/agents", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/agents

Create AgencieAgent

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieAgentResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Index Agencies(id0).agents

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/agents \
  -H 'Accept: application/json'

GET /agencies/{id0}/agents HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agents',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agents',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/agents',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/agents', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/agents", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/agents

Retrieve list of AgencieAgents

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
id query array[integer] false Ids of Agency to filter by
sort query array[string] false Sort the listed agencies
profile_id query array[integer] false Id of profiles
all query boolean false Include all statuses
agency_id query array[integer] false Id of agency
user_id query array[integer] false User ID

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "workEmail": "string",
      "status": "string",
      "agency": {
        "id": 0,
        "reference": "string",
        "slug": "string",
        "name": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      },
      "agent": {
        "profile": {
          "id": 0,
          "slug": "string",
          "name": "string",
          "summary": "string"
        }
      },
      "officeId": 0
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentIndexResource

Delete Agencies(id0).agents(id1)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0}/agents/{id1} \
  -H 'Accept: application/json'

DELETE /agencies/{id0}/agents/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agents/{id1}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agents/{id1}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}/agents/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}/agents/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agents/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}/agents/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}/agents/{id1}

Delete AgencieAgent

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Get Agencies(id0).agents(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/agents/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/agents/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agents/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agents/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/agents/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/agents/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agents/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/agents/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/agents/{id1}

Get AgencieAgent

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Update Agencies(id0).agents(id1)

Code samples

# You can also use wget
curl -X PUT /agencies/{id0}/agents/{id1} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/{id0}/agents/{id1} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agents/{id1}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agents/{id1}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/{id0}/agents/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/{id0}/agents/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agents/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/{id0}/agents/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/{id0}/agents/{id1}

Update AgencieAgent

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none
body body AgencieAgentResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Create Agencies(id0).access_requests

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/access_requests \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/access_requests HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/access_requests',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/access_requests',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/access_requests',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/access_requests', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/access_requests");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/access_requests", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/access_requests

Create AgencieAccess_request

Body parameter

{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieAccess_requestResource false none

Example responses

200 Response

{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAccess_requestResource

Index Agencies(id0).access_requests

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/access_requests \
  -H 'Accept: application/json'

GET /agencies/{id0}/access_requests HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/access_requests',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/access_requests',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/access_requests',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/access_requests', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/access_requests");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/access_requests", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/access_requests

Retrieve list of AgencieAccess_requests

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
sort query string false Sort requests
id query array[integer] false List of requests
recipient_id query array[integer] false List of recipient ids (profileIds)
sender_id query array[integer] false List of sender ids (profileIds)
status query boolean false Status of request
active query boolean false Key of active requests
user_id query array[integer] false User ID

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "sender": {
        "user": {
          "id": 0
        },
        "profile": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "name": "string",
        "email": "string",
        "phone_number": "string",
        "timezone": "string",
        "preferred_time": "string"
      },
      "agency": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "recipient": {
        "profile": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "email": "string"
      },
      "accessRequestType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      },
      "text": "string",
      "status": true,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAccess_requestIndexResource

Delete Agencies(id0).access_requests(id1)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0}/access_requests/{id1} \
  -H 'Accept: application/json'

DELETE /agencies/{id0}/access_requests/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/access_requests/{id1}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/access_requests/{id1}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}/access_requests/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}/access_requests/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/access_requests/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}/access_requests/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}/access_requests/{id1}

Delete AgencieAccess_request

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAccess_requestResource

Get Agencies(id0).access_requests(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/access_requests/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/access_requests/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/access_requests/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/access_requests/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/access_requests/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/access_requests/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/access_requests/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/access_requests/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/access_requests/{id1}

Get AgencieAccess_request

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAccess_requestResource

Update Agencies(id0).access_requests(id1)

Code samples

# You can also use wget
curl -X PUT /agencies/{id0}/access_requests/{id1} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/{id0}/access_requests/{id1} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/access_requests/{id1}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/access_requests/{id1}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/{id0}/access_requests/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/{id0}/access_requests/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/access_requests/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/{id0}/access_requests/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/{id0}/access_requests/{id1}

Update AgencieAccess_request

Body parameter

{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none
body body AgencieAccess_requestResource false none

Example responses

200 Response

{
  "id": 0,
  "sender": {
    "user": {
      "id": 0
    },
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "name": "string",
    "email": "string",
    "phone_number": "string",
    "timezone": "string",
    "preferred_time": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  },
  "recipient": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "email": "string"
  },
  "accessRequestType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "text": "string",
  "status": true,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAccess_requestResource

Create Agencies(id0).contacts

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/contacts \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/contacts HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/contacts',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ],
  "contactType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "contact_category": "string",
  "sns": "string",
  "name": "string",
  "label": "string",
  "value": "string",
  "created_at": "2021-11-26",
  "updated_at": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/contacts',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/contacts',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/contacts', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/contacts");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/contacts", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/contacts

Create AgencieContact

Body parameter

{
  "id": 0,
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ],
  "contactType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "contact_category": "string",
  "sns": "string",
  "name": "string",
  "label": "string",
  "value": "string",
  "created_at": "2021-11-26",
  "updated_at": "2021-11-26"
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieContactResource false none

Example responses

200 Response

{
  "id": 0,
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ],
  "contactType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "contact_category": "string",
  "sns": "string",
  "name": "string",
  "label": "string",
  "value": "string",
  "created_at": "2021-11-26",
  "updated_at": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieContactResource

Index Agencies(id0).contacts

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/contacts \
  -H 'Accept: application/json'

GET /agencies/{id0}/contacts HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/contacts',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/contacts',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/contacts',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/contacts', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/contacts");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/contacts", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/contacts

Retrieve list of AgencieContacts

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
show_hidden query boolean false Show hidden contact
contact_category query array[string] false Contact category
sns query array[string] false Contact social network.
contact_type_id query array[integer] false Contact type. 0 - phone number, 1 - email, 2 - sns, 3 - website, 4 - address, 5 - other(fax, etc.).
privacy_attribute_id query array[integer] false Privacy for the contact

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ],
      "contactType": {
        "id": 0,
        "name": "string",
        "slug": "string"
      },
      "contact_category": "string",
      "sns": "string",
      "name": "string",
      "label": "string",
      "value": "string",
      "created_at": "2021-11-26",
      "updated_at": "2021-11-26"
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieContactIndexResource

Delete Agencies(id0).contacts(id1)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0}/contacts/{id1} \
  -H 'Accept: application/json'

DELETE /agencies/{id0}/contacts/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/contacts/{id1}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/contacts/{id1}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}/contacts/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}/contacts/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/contacts/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}/contacts/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}/contacts/{id1}

Delete AgencieContact

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ],
  "contactType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "contact_category": "string",
  "sns": "string",
  "name": "string",
  "label": "string",
  "value": "string",
  "created_at": "2021-11-26",
  "updated_at": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieContactResource

Get Agencies(id0).contacts(id1)

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/contacts/{id1} \
  -H 'Accept: application/json'

GET /agencies/{id0}/contacts/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/contacts/{id1}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/contacts/{id1}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/contacts/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/contacts/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/contacts/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/contacts/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/contacts/{id1}

Get AgencieContact

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "privacyAttributes": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "description": "string",
      "privacyId": 0
    }
  ],
  "contactType": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "contact_category": "string",
  "sns": "string",
  "name": "string",
  "label": "string",
  "value": "string",
  "created_at": "2021-11-26",
  "updated_at": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieContactResource

Create Agencies(id0).agencyprivacies

Code samples

# You can also use wget
curl -X POST /agencies/{id0}/agencyPrivacies \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/{id0}/agencyPrivacies HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agencyPrivacies',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "entityType": "string",
  "entityId": 0,
  "privacyAttribute": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  }
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agencyPrivacies',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/{id0}/agencyPrivacies',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/{id0}/agencyPrivacies', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agencyPrivacies");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/{id0}/agencyPrivacies", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/{id0}/agencyPrivacies

Create AgencieAgencyPrivacie

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "entityType": "string",
  "entityId": 0,
  "privacyAttribute": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  }
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieAgencyPrivacieResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "entityType": "string",
  "entityId": 0,
  "privacyAttribute": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgencyPrivacieResource

Index Agencies(id0).agencyprivacies

Code samples

# You can also use wget
curl -X GET /agencies/{id0}/agencyPrivacies \
  -H 'Accept: application/json'

GET /agencies/{id0}/agencyPrivacies HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agencyPrivacies',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agencyPrivacies',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/{id0}/agencyPrivacies',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/{id0}/agencyPrivacies', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agencyPrivacies");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/{id0}/agencyPrivacies", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/{id0}/agencyPrivacies

Retrieve list of AgencieAgencyPrivacies

Parameters

Name In Type Required Description
id0 path string true none
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
entity_type query array[string] false Entity type

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "entityType": "string",
      "entityId": 0,
      "privacyAttribute": {
        "id": 0,
        "name": "string",
        "slug": "string"
      },
      "agency": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgencyPrivacieIndexResource

Delete Agencies(id0).agencyprivacies(id1)

Code samples

# You can also use wget
curl -X DELETE /agencies/{id0}/agencyPrivacies/{id1} \
  -H 'Accept: application/json'

DELETE /agencies/{id0}/agencyPrivacies/{id1} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/{id0}/agencyPrivacies/{id1}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/{id0}/agencyPrivacies/{id1}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/{id0}/agencyPrivacies/{id1}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/{id0}/agencyPrivacies/{id1}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/{id0}/agencyPrivacies/{id1}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/{id0}/agencyPrivacies/{id1}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/{id0}/agencyPrivacies/{id1}

Delete AgencieAgencyPrivacie

Parameters

Name In Type Required Description
id0 path string true none
id1 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "entityType": "string",
  "entityId": 0,
  "privacyAttribute": {
    "id": 0,
    "name": "string",
    "slug": "string"
  },
  "agency": {
    "id": 0,
    "slug": "string",
    "name": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgencyPrivacieResource

Create Agencies.agreements

Code samples

# You can also use wget
curl -X POST /agencies/agreements \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/agreements HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agreements',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/agreements',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/agreements',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/agreements', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agreements");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/agreements", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/agreements

Create AgencieAgreement

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}

Parameters

Name In Type Required Description
body body AgencieAgreementResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgreementResource

Index Agencies.agreements

Code samples

# You can also use wget
curl -X GET /agencies/agreements \
  -H 'Accept: application/json'

GET /agencies/agreements HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agreements',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/agreements',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/agreements',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/agreements', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agreements");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/agreements", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/agreements

Retrieve list of AgencieAgreements

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
id query array[integer] false Ids of Agency to filter by
sort query array[string] false Sort the listed agencies
agency_connection_id query array[integer] false Id of agency connection
status query array[string] false Status of an agreement

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "expiredAt": "2021-11-26",
      "status": "string",
      "agents": [
        {
          "id": 0,
          "status": "string",
          "profile": {
            "id": 0,
            "name": "string",
            "slug": "string",
            "image": {
              "original": "string",
              "large": "string",
              "medium": "string",
              "small": "string",
              "file": {
                "content": "string",
                "size": 0
              }
            }
          }
        }
      ],
      "contactPersons": [
        {
          "id": 0,
          "profileId": "string",
          "agentName": "string",
          "agentEmail": "string",
          "agentPhoneNumber": "string",
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ]
        }
      ],
      "agencyConnectionProfession": {
        "id": 0,
        "profession": {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      },
      "connection": {
        "id": 0,
        "email": "string",
        "agent": {
          "id": 0,
          "profile": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        },
        "agency": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "artist": {
          "profile": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      },
      "exclusive": true,
      "agreementType": "string",
      "countries": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "code": "string",
          "isExcluded": true
        }
      ],
      "regions": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "code": "string",
          "isExcluded": true
        }
      ]
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgreementIndexResource

Delete Agencies.agreements(id0)

Code samples

# You can also use wget
curl -X DELETE /agencies/agreements/{id0} \
  -H 'Accept: application/json'

DELETE /agencies/agreements/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agreements/{id0}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/agreements/{id0}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/agreements/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/agreements/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agreements/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/agreements/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/agreements/{id0}

Delete AgencieAgreement

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgreementResource

Get Agencies.agreements(id0)

Code samples

# You can also use wget
curl -X GET /agencies/agreements/{id0} \
  -H 'Accept: application/json'

GET /agencies/agreements/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agreements/{id0}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/agreements/{id0}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/agreements/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/agreements/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agreements/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/agreements/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/agreements/{id0}

Get AgencieAgreement

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgreementResource

Update Agencies.agreements(id0)

Code samples

# You can also use wget
curl -X PUT /agencies/agreements/{id0} \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

PUT /agencies/agreements/{id0} HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agreements/{id0}',
  method: 'put',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/agreements/{id0}',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.put '/agencies/agreements/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.put('/agencies/agreements/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agreements/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "/agencies/agreements/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

PUT /agencies/agreements/{id0}

Update AgencieAgreement

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}

Parameters

Name In Type Required Description
id0 path string true none
body body AgencieAgreementResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "expiredAt": "2021-11-26",
  "status": "string",
  "agents": [
    {
      "id": 0,
      "status": "string",
      "profile": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      }
    }
  ],
  "contactPersons": [
    {
      "id": 0,
      "profileId": "string",
      "agentName": "string",
      "agentEmail": "string",
      "agentPhoneNumber": "string",
      "privacyAttributes": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "description": "string",
          "privacyId": 0
        }
      ]
    }
  ],
  "agencyConnectionProfession": {
    "id": 0,
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "connection": {
    "id": 0,
    "email": "string",
    "agent": {
      "id": 0,
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "agency": {
      "id": 0,
      "name": "string",
      "slug": "string"
    },
    "artist": {
      "profile": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    }
  },
  "exclusive": true,
  "agreementType": "string",
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ],
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "code": "string",
      "isExcluded": true
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgreementResource

Create Agencies.agents

Code samples

# You can also use wget
curl -X POST /agencies/agents \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/agents HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agents',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/agents',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/agents',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/agents', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/agents", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/agents

Create AgencieAgent

Body parameter

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Parameters

Name In Type Required Description
body body AgencieAgentResource false none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Index Agencies.agents

Code samples

# You can also use wget
curl -X GET /agencies/agents \
  -H 'Accept: application/json'

GET /agencies/agents HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agents',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/agents',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/agents',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/agents', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agents");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/agents", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/agents

Retrieve list of AgencieAgents

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
query query string false Wildcard query to filter resources by
id query array[integer] false Ids of Agency to filter by
sort query array[string] false Sort the listed agencies
profile_id query array[integer] false Id of profiles
all query boolean false Include all statuses
agency_id query array[integer] false Id of agency
user_id query array[integer] false User ID

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26",
      "workEmail": "string",
      "status": "string",
      "agency": {
        "id": 0,
        "reference": "string",
        "slug": "string",
        "name": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        }
      },
      "agent": {
        "profile": {
          "id": 0,
          "slug": "string",
          "name": "string",
          "summary": "string"
        }
      },
      "officeId": 0
    }
  ]
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentIndexResource

Delete Agencies.agents(id0)

Code samples

# You can also use wget
curl -X DELETE /agencies/agents/{id0} \
  -H 'Accept: application/json'

DELETE /agencies/agents/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agents/{id0}',
  method: 'delete',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/agents/{id0}',
{
  method: 'DELETE',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.delete '/agencies/agents/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.delete('/agencies/agents/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agents/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("DELETE", "/agencies/agents/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

DELETE /agencies/agents/{id0}

Delete AgencieAgent

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Get Agencies.agents(id0)

Code samples

# You can also use wget
curl -X GET /agencies/agents/{id0} \
  -H 'Accept: application/json'

GET /agencies/agents/{id0} HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/agents/{id0}',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/agents/{id0}',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/agents/{id0}',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/agents/{id0}', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/agents/{id0}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/agents/{id0}", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/agents/{id0}

Get AgencieAgent

Parameters

Name In Type Required Description
id0 path string true none

Example responses

200 Response

{
  "id": 0,
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26",
  "workEmail": "string",
  "status": "string",
  "agency": {
    "id": 0,
    "reference": "string",
    "slug": "string",
    "name": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    }
  },
  "agent": {
    "profile": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "summary": "string"
    }
  },
  "officeId": 0
}

Responses

Status Meaning Description Schema
200 OK ok AgencieAgentResource

Create Agencies.artists

Code samples

# You can also use wget
curl -X POST /agencies/artists \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

POST /agencies/artists HTTP/1.1

Content-Type: application/json
Accept: application/json

var headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/artists',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'

};

fetch('/agencies/artists',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json'
}

result = RestClient.post '/agencies/artists',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('/agencies/artists', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/artists");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "/agencies/artists", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /agencies/artists

Create AgencieArtist

Body parameter

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Parameters

Name In Type Required Description
body body AgencieArtistResource false none

Example responses

200 Response

{
  "id": 0,
  "agency": {
    "id": 0,
    "name": "string",
    "slug": "string",
    "image": {
      "original": "string",
      "large": "string",
      "medium": "string",
      "small": "string",
      "file": {
        "content": "string",
        "size": 0
      }
    },
    "contacts": [
      {
        "id": 0,
        "privacyAttributes": [
          {
            "id": 0,
            "name": "string",
            "slug": "string",
            "description": "string",
            "privacyId": 0
          }
        ],
        "contactType": {
          "id": 0,
          "name": "string",
          "slug": "string"
        },
        "contact_category": "string",
        "sns": "string",
        "name": "string",
        "label": "string",
        "value": "string",
        "created_at": "2021-11-26",
        "updated_at": "2021-11-26"
      }
    ]
  },
  "agent": {
    "id": 0,
    "name": "string",
    "email": "string",
    "profile": {
      "id": 0,
      "name": "string",
      "email": "string",
      "slug": "string",
      "isPro": true,
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      },
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ]
    }
  },
  "contactPerson": {
    "id": 0,
    "profileId": "string",
    "agentName": "string",
    "agentEmail": "string",
    "agentPhoneNumber": "string"
  },
  "initiator": {
    "profile": {
      "id": 0,
      "name": "string",
      "slug": "string"
    }
  },
  "artist": {
    "email": "string",
    "phoneNumber": "string",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "profession": {
      "id": 0,
      "slug": "string",
      "name": "string",
      "professionQualification": {
        "id": 0,
        "slug": "string",
        "name": "string"
      }
    },
    "isApproved": true,
    "lastUpdateBy": {
      "id": 0,
      "name": "string"
    },
    "user": {
      "id": 0,
      "name": "string"
    },
    "profile": {
      "id": 0,
      "name": "string",
      "is_hidden": true,
      "isPro": true,
      "firstName": "string",
      "lastName": "string",
      "slug": "string",
      "contacts": [
        {
          "id": 0,
          "privacyAttributes": [
            {
              "id": 0,
              "name": "string",
              "slug": "string",
              "description": "string",
              "privacyId": 0
            }
          ],
          "contactType": {
            "id": 0,
            "name": "string",
            "slug": "string"
          },
          "contact_category": "string",
          "sns": "string",
          "name": "string",
          "label": "string",
          "value": "string",
          "created_at": "2021-11-26",
          "updated_at": "2021-11-26"
        }
      ],
      "image": {
        "original": "string",
        "large": "string",
        "medium": "string",
        "small": "string",
        "file": {
          "content": "string",
          "size": 0
        }
      },
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      },
      "professions": [
        {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        }
      ],
      "agencies": [
        {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      ]
    }
  },
  "regions": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "countries": [
    {
      "id": 0,
      "name": "string",
      "slug": "string",
      "exclusive": true,
      "agreementType": true,
      "isExcluded": true
    }
  ],
  "agencyConnectionProfessions": [
    {
      "id": 0,
      "profession": {
        "id": 0,
        "slug": "string",
        "name": "string",
        "professionQualification": {
          "id": 0,
          "slug": "string",
          "name": "string"
        }
      }
    }
  ],
  "addedBy": "string",
  "createdAt": "2021-11-26",
  "updatedAt": "2021-11-26"
}

Responses

Status Meaning Description Schema
200 OK ok AgencieArtistResource

Index Agencies.artists

Code samples

# You can also use wget
curl -X GET /agencies/artists \
  -H 'Accept: application/json'

GET /agencies/artists HTTP/1.1

Accept: application/json

var headers = {
  'Accept':'application/json'

};

$.ajax({
  url: '/agencies/artists',
  method: 'get',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');

const headers = {
  'Accept':'application/json'

};

fetch('/agencies/artists',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json'
}

result = RestClient.get '/agencies/artists',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json'
}

r = requests.get('/agencies/artists', params={

}, headers = headers)

print r.json()

URL obj = new URL("/agencies/artists");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "/agencies/artists", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

GET /agencies/artists

Retrieve list of AgencieArtists

Parameters

Name In Type Required Description
page query integer(int64) false Current page in the entire result
limit query integer(int64) false Limit the number of resources pr. request
sort query string false Sort Users
query query string false Wildcard query to filter resources by
id query array[integer] false List of agency connections
artist_profile_id query array[integer] false List of profiles ids
request_id query array[integer] false List of request id
participant_id query array[integer] false List of participant id

Example responses

200 Response

{
  "page": 0,
  "limit": 0,
  "total": 0,
  "criteria": {},
  "data": [
    {
      "id": 0,
      "agency": {
        "id": 0,
        "name": "string",
        "slug": "string",
        "image": {
          "original": "string",
          "large": "string",
          "medium": "string",
          "small": "string",
          "file": {
            "content": "string",
            "size": 0
          }
        },
        "contacts": [
          {
            "id": 0,
            "privacyAttributes": [
              {
                "id": 0,
                "name": "string",
                "slug": "string",
                "description": "string",
                "privacyId": 0
              }
            ],
            "contactType": {
              "id": 0,
              "name": "string",
              "slug": "string"
            },
            "contact_category": "string",
            "sns": "string",
            "name": "string",
            "label": "string",
            "value": "string",
            "created_at": "2021-11-26",
            "updated_at": "2021-11-26"
          }
        ]
      },
      "agent": {
        "id": 0,
        "name": "string",
        "email": "string",
        "profile": {
          "id": 0,
          "name": "string",
          "email": "string",
          "slug": "string",
          "isPro": true,
          "image": {
            "original": "string",
            "large": "string",
            "medium": "string",
            "small": "string",
            "file": {
              "content": "string",
              "size": 0
            }
          },
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string"
          },
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          },
          "contacts": [
            {
              "id": 0,
              "privacyAttributes": [
                {
                  "id": 0,
                  "name": "string",
                  "slug": "string",
                  "description": "string",
                  "privacyId": 0
                }
              ],
              "contactType": {
                "id": 0,
                "name": "string",
                "slug": "string"
              },
              "contact_category": "string",
              "sns": "string",
              "name": "string",
              "label": "string",
              "value": "string",
              "created_at": "2021-11-26",
              "updated_at": "2021-11-26"
            }
          ]
        }
      },
      "contactPerson": {
        "id": 0,
        "profileId": "string",
        "agentName": "string",
        "agentEmail": "string",
        "agentPhoneNumber": "string"
      },
      "initiator": {
        "profile": {
          "id": 0,
          "name": "string",
          "slug": "string"
        }
      },
      "artist": {
        "email": "string",
        "phoneNumber": "string",
        "name": "string",
        "firstName": "string",
        "lastName": "string",
        "profession": {
          "id": 0,
          "slug": "string",
          "name": "string",
          "professionQualification": {
            "id": 0,
            "slug": "string",
            "name": "string"
          }
        },
        "isApproved": true,
        "lastUpdateBy": {
          "id": 0,
          "name": "string"
        },
        "user": {
          "id": 0,
          "name": "string"
        },
        "profile": {
          "id": 0,
          "name": "string",
          "is_hidden": true,
          "isPro": true,
          "firstName": "string",
          "lastName": "string",
          "slug": "string",
          "contacts": [
            {
              "id": 0,
              "privacyAttributes": [
                {
                  "id": 0,
                  "name": "string",
                  "slug": "string",
                  "description": "string",
                  "privacyId": 0
                }
              ],
              "contactType": {
                "id": 0,
                "name": "string",
                "slug": "string"
              },
              "contact_category": "string",
              "sns": "string",
              "name": "string",
              "label": "string",
              "value": "string",
              "created_at": "2021-11-26",
              "updated_at": "2021-11-26"
            }
          ],
          "image": {
            "original": "string",
            "large": "string",
            "medium": "string",
            "small": "string",
            "file": {
              "content": "string",
              "size": 0
            }
          },
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string",
            "professionQualification": {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          },
          "professions": [
            {
              "id": 0,
              "slug": "string",
              "name": "string",
              "professionQualification": {
                "id": 0,
                "slug": "string",
                "name": "string"
              }
            }
          ],
          "agencies": [
            {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          ]
        }
      },
      "regions": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "exclusive": true,
          "agreementType": true,
          "isExcluded": true
        }
      ],
      "countries": [
        {
          "id": 0,
          "name": "string",
          "slug": "string",
          "exclusive": true,
          "agreementType": true,
          "isExcluded": true
        }
      ],
      "agencyConnectionProfessions": [
        {
          "id": 0,
          "profession": {
            "id": 0,
            "slug": "string",
            "name": "string",
            "professionQualification": {
              "id": 0,
              "slug": "string",
              "name": "string"
            }
          }
        }
      ],
      "addedBy": "string",
      "createdAt": "2021-11-26",
      "updatedAt": "2021-11-26"
    }
  ]
}

Responses

Status Meaning Description Schema
200