{
"data": {
"type": "GeneratedTest",
"attributes": {
"source": {
"type": "collection",
"objectId": "string"
},
"length": 0,
"tagFilters": {},
"tagSetId": "string"
},
"relationships": {
"test": {
"data": {
"id": "FID001",
"type": "Test"
}
},
"tagSet": {
"data": {
"id": "FID001",
"type": "TagSet"
}
}
}
}
}
curl --location --request POST 'https://api.synap.ac/v3/generated-tests' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "GeneratedTest",
"attributes": {
"source": {
"type": "collection",
"objectId": "string"
},
"length": 0,
"tagFilters": {},
"tagSetId": "string"
},
"relationships": {
"test": {
"data": {
"id": "FID001",
"type": "Test"
}
},
"tagSet": {
"data": {
"id": "FID001",
"type": "TagSet"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "GeneratedTest",
"attributes": {
"source": {
"type": "collection",
"objectId": "string"
},
"length": 0,
"tagFilters": {},
"tagSetId": "string"
},
"relationships": {
"test": {
"data": {
"id": "FID001",
"type": "Test"
}
},
"tagSet": {
"data": {
"id": "FID001",
"type": "TagSet"
}
}
}
},
"included": [
{
"id": "FID001",
"type": "_User",
"attributes": {},
"relationships": {
"property1": {
"data": {
"id": "FID001",
"type": "_User"
},
"links": {
"self": "string",
"related": "string"
},
"meta": {}
},
"property2": {
"data": {
"id": "FID001",
"type": "_User"
},
"links": {
"self": "string",
"related": "string"
},
"meta": {}
}
}
}
]
}