A prospect's role and association with an opportunity
createdAt | string <date-time>
The date and time the role was created. |
primary | boolean A boolean value indicating if this prospect is the primary contact within an opportunity. |
role | string <= 255 characters
A string value representing the role. |
updatedAt | string <date-time>
The date and time the role was last updated. |
{- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
data (object) or links (object) (opportunity) The opportunity associated with the role. You can use only the attribute id to filter opportunityProspectRoles by opportunity (e.g. filter[opportunity][id]=X). | |
data (object) or links (object) (prospect) The prospect associated with the role. You can use only the attribute id to filter opportunityProspectRoles by prospect (e.g. filter[prospect][id]=X). |
{- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}
METADATA NAME | DESCRIPTION | QUERY PARAM |
---|---|---|
canWrite | A boolean value indicating whether the current API user has write access to this resource. | provideAuthorizationMeta |
canDelete | A boolean value indicating whether the current API user has delete access to this resource. | provideAuthorizationMeta |
OK
JSON error message
{- "data": [
- {
- "attributes": {
- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "id": 0,
- "relationships": {
- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}, - "type": "string"
}
]
}
object |
Created
JSON error message
{- "data": {
- "attributes": {
- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "relationships": {
- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}, - "type": "string"
}
}
{- "data": {
- "attributes": {
- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "id": 0,
- "relationships": {
- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}, - "type": "string"
}
}
Deleted
JSON error message
{- "errors": [
- {
- "detail": "string",
- "id": "string",
- "title": "string"
}
]
}
{- "data": {
- "attributes": {
- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "id": 0,
- "relationships": {
- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}, - "type": "string"
}
}
{- "data": {
- "attributes": {
- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "id": 0,
- "relationships": {
- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}, - "type": "string"
}
}
{- "data": {
- "attributes": {
- "createdAt": "2019-08-24T14:15:22Z",
- "primary": true,
- "role": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "id": 0,
- "relationships": {
- "opportunity": {
- "data": {
- "id": 0,
- "type": "opportunity"
}
}, - "prospect": {
- "data": {
- "id": 0,
- "type": "prospect"
}
}
}, - "type": "string"
}
}