POST
/
v1
/
onboarding
/
collectives
curl --request POST \
  --url https://platform.realto.io/api/v1/onboarding/collectives \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collectiveId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "properties": "<any>",
  "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "Community"
}'
{
  "action": {
    "documentationLink": "<string>",
    "redirectLink": "<string>",
    "type": "Consent"
  },
  "data": {
    "collective": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "properties": "<any>",
      "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "Community"
    },
    "entity": {
      "collectiveId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "information": {
        "code": "<string>",
        "ean": "<string>",
        "email": "<string>",
        "manufacturer": "<string>",
        "model": "<string>",
        "reference": "<string>",
        "track": "<string>",
        "type": "Battery",
        "uuid": "<string>",
        "vin": "<string>"
      },
      "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "properties": "<any>",
      "reference": {
        "manufacturer": "<string>",
        "type": "<string>",
        "reference": "<string>"
      },
      "systemProperties": "<any>",
      "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "Battery"
    },
    "tenant": {
      "type": "Company",
      "administrator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "user": {
      "collectiveId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "<string>",
      "givenName": "<string>",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "language": "<string>",
      "surname": "<string>",
      "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "client": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "isTenantAdmin": true
    }
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "principalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "requestType": "Collective",
  "returnUrl": "<string>",
  "status": "Canceled",
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Access Token Authentication

Body

The Collective Onboarding Request

Represents a request to onboard a Collective

name
string | null
required

The name of the Collective

tenantId
string
required

The id of the Tenant of the Collective

collectiveId
string | null

The id of the Collective

owner
string | null

The owner of the Collective

properties
any | null

The custom properties of the Collective

type
enum<string>
Available options:
Community,
Household,
Fleet,
SolarFarm,
WindFarm

Response

201
application/json
Created

Represents an onboarding request

action
object

Represents an action for an onboarding request

data
object

Represents the data of an onboarding request

id
string

The id of the onboarding request

principalId
string

The id of the principal that initiated the onboarding request

requestType
enum<string>
Available options:
Collective,
Entity,
Tenant,
User,
Client
returnUrl
string | null

The url where the User will be redirected to after completing the consent flow on the OEM page.

status
enum<string>
Available options:
Canceled,
Failed,
InProgress,
Pending,
Succeeded
errors
object[] | null

Errors that occurred during the processing of the onboarding request