- Omni
- Contact APIs
- NameSpace
- Address
- Bank
- Props
- Relation
- Contact
Create
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/contacts/relations/
Last modified:2025-04-02 08:35:22
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
contact
string
required
related_contact
string
required
type
string
required
Example
{
"contact": "01JQ8T3WZ4CEYA74W2WFA5BWJB",
"related_contact": "01JQ8RRBB2XRSVTCG11Y6JKCKH",
"type": "father"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/contacts/relations/' \
--header 'Content-Type: application/json' \
--data-raw '{
"contact": "01JQ8T3WZ4CEYA74W2WFA5BWJB",
"related_contact": "01JQ8RRBB2XRSVTCG11Y6JKCKH",
"type": "father"
}'
Responses
🟢201Created
application/json
Body
id
string
required
tenant_id
string
required
created_by
string
required
updated_by
string
required
created_at
string
required
updated_at
string
required
type
string
required
tags
array[string]
required
refs
object
required
contact
string
required
related_contact
string
required
props
array[string]
required
Example
{"id":"01JN5QEYNNCEB2K4BRQJRNZGMG","tenant_id":"59ecf94e-054d-43ee-83db-b158ab9d7f67","created_by":"cffe818a-5003-4116-9104-069f7e062bb4","updated_by":"","created_at":"2025-02-28T13:01:16.341851Z","updated_at":"2025-02-28T13:01:16.341851Z","type":"father","contact":"01JMH5RK91QB2WKRE67D1F32YS","related_contact":"01JMH4QJQ6VP27A1ZSZ8YZ486K"}