Hi @abm
Please see the schema below, I am trying to create an item in sharepoint using the "rooms" value.
{
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"type": "object",
"properties": {
"Date": {
"type": "string"
},
"Transfer-Encoding": {
"type": "string"
},
"Connection": {
"type": "string"
},
"Vary": {
"type": "string"
},
"Request-Context": {
"type": "string"
},
"Strict-Transport-Security": {
"type": "string"
},
"X-Real-IP": {
"type": "string"
},
"Referrer-Policy": {
"type": "string"
},
"X-Frame-Options": {
"type": "string"
},
"X-Content-Type-Options": {
"type": "string"
},
"Content-Type": {
"type": "string"
},
"Content-Length": {
"type": "string"
}
}
},
"body": {
"type": "object",
"properties": {
"classes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"year_group": {
"type": "string"
},
"subject_code": {
"type": "string"
},
"group_code": {
"type": "string"
},
"period_id": {
"type": "integer"
},
"rooms": {
"type": "string"
},
"teacher_ids": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"required": [
"id",
"year_group",
"subject_code",
"group_code",
"period_id",
"rooms",
"teacher_ids"
]
}
},
"has_more": {
"type": "boolean"
},
"cursor": {
"type": "integer"
}
}
}
}
}
Please see the JSON parse below from this schema.
{
"body": {
"classes": [
{
"id": 00000000,
"year_group": "7",
"subject_code": "Class",
"group_code": "Class",
"period_id": 444444,
"rooms": [
"Class2"
],
"teacher_ids": [
3333333
]
},
{
"id": 1111111,
"year_group": "7",
"subject_code": "Class",
"group_code": "Class",
"period_id": 1111,
"rooms": [
"Room1"
],
"teacher_ids": [
22222
]
},
{
Thank you.