Discussions

Ask a Question
Back to all

Usage of relation ship types unclear

Hey there,

I'm trying to do the following request

```
curl --request POST
--url https://api.marketcircle.net/v1/relationships
--header 'Authorization: Bearer REDACTED'
--header 'accept: application/json'
--header 'content-type: application/json'
--data ' {
"relationship_type": "/v1/relationship_types/7000",
"source_contact": "/v1/contacts/3000",
"destination_contact": "/v1/contacts/13000"
}
'
```

The response I get is

```

{
"base": [
{
"error": "can_not_link_when_type_does_not_belong_to_object"
}
]
}

```

but if I do request the data on the relationship type, I get

```
{
"self": "/v1/relationship_types/7000",
"forward": "ist Vorgesetzte/r von",
"reverse": "ist Mitarbeiter/in von",
"forward_title": "Vorgesetzte/r",
"reverse_title": "Mitarbeiter/in",
"for_contact": true,
"for_company": false,
"is_active": true,
"create_date": "2024-02-11T10:16:25.000Z"
}

```

If I fetch /v1/contacts/3000 and /v1/contacts/13000 I do get valid responses. Now that I double checked I also saw that there is a link with that relationship type between the two even though I deleted it like half an hour ago in the Daylite App and I also cannot trigger a reload in the daylite app that would make it display the existing relationship