openapi: 3.0.2
info:
title: Didomi consents/events partners-spi-purposes API
description: 'A REST API to communicate with the Didomi platform (https://api.didomi.io/v1/)
This is the complete specification of the API. A complete guide to authenticating and using the API is available on our Developers Portal.
All HTTP calls to the API require a valid JWT token. The token must be provided in an **Authorization** header with the value "Bearer ".
Click on the Authorize button in the header of this page to provide a token before testing requests from this documentation.
'
version: '1.0'
servers:
- url: https://api.didomi.io/v1
description: Didomi Platform API
security:
- bearer: []
tags:
- name: partners-spi-purposes
paths:
/metadata/partners-spi-purposes:
get:
parameters:
- description: Number of results to return
in: query
name: $limit
schema:
type: integer
- description: Number of results to skip
in: query
name: $skip
schema:
type: integer
- description: Property to sort results
in: query
name: $sort
style: deepObject
schema:
type: object
- description: Query parameters to filter
in: query
name: filter
style: form
explode: true
schema:
$ref: '#/components/schemas/partners-spi-purposes'
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/partners-spi-purposes'
description: Returns a list of all partners-spi-purposes objects
summary: Retrieve a list of partners-spi-purposes objects
tags:
- partners-spi-purposes
security:
- bearer: []
post:
parameters:
- name: partners-spi-purposes
in: body
description: The partners-spi-purposes object to create
required: true
schema:
type: array
items:
$ref: '#/components/schemas/partners-spi-purposes-input'
responses:
'201':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/partners-spi-purposes'
description: Create a new partner purpose association
summary: Create a new association between a partner and purpose
tags:
- partners-spi-purposes
security:
- bearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/partners-spi-purposes'
components:
schemas:
partners-spi-purposes-input:
title: PartnersSPIPurposesInput
type: object
properties:
metadata_partner_id:
type: string
description: Partner ID
metadata_purpose_id:
type: string
description: Purpose ID
organization_id:
type: string
description: Organization ID
partners-spi-purposes:
type: object
title: PartnersSPIPurposes
properties:
metadata_partner_id:
type: string
description: Partner ID
metadata_purpose_id:
type: string
description: Purpose ID
is_org_override:
type: boolean
description: Override flag, if true, means that the association references a global partner but belongs to an organization
organization_id:
type: string
description: Organization ID
created_at:
type: string
description: Creation date of the partners-spi-purposes object
format: date-time
updated_at:
type: string
description: Last update date of the partners-spi-purposes object
format: date-time
required:
- metadata_partner_id
- metadata_purpose_id
- organization_id
securitySchemes:
bearer:
scheme: bearer
bearerFormat: JWT
type: http