import requests
url = "https://{FUSION HOST}/api/objects/validate"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"contentDisposition\"\r\n\r\n{\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"entity\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"headers\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"mediaType\"\r\n\r\n{\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"messageBodyWorkers\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parent\"\r\n\r\n{\r\n \"contentDisposition\": {\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n },\r\n \"entity\": {},\r\n \"headers\": {},\r\n \"mediaType\": {\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n },\r\n \"messageBodyWorkers\": {},\r\n \"parent\": \"<unknown>\",\r\n \"providers\": {},\r\n \"bodyParts\": [\r\n {\r\n \"contentDisposition\": {\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n },\r\n \"entity\": {},\r\n \"headers\": {},\r\n \"mediaType\": {\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n },\r\n \"messageBodyWorkers\": {},\r\n \"parent\": \"<unknown>\",\r\n \"providers\": {},\r\n \"parameterizedHeaders\": {}\r\n }\r\n ],\r\n \"parameterizedHeaders\": {}\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"providers\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bodyParts\"\r\n\r\n{\r\n \"contentDisposition\": {\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n },\r\n \"entity\": {},\r\n \"headers\": {},\r\n \"mediaType\": {\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n },\r\n \"messageBodyWorkers\": {},\r\n \"parent\": \"<unknown>\",\r\n \"providers\": {},\r\n \"parameterizedHeaders\": {}\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fields\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parameterizedHeaders\"\r\n\r\n{}\r\n-----011000010111000001101001--"
headers = {"Content-Type": "multipart/form-data; boundary=---011000010111000001101001"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"conflicts": [
"<string>"
],
"variablesWarnings": [
"<string>"
],
"variablesErrors": [
"<string>"
],
"variablesSubstitutions": [
"<string>"
],
"validationWarnings": [
"<string>"
],
"validationErrors": [
"<string>"
],
"importErrors": [
"<string>"
],
"importActions": [
"<string>"
],
"zipFileToken": "<string>",
"transformationMsgs": [
"<string>"
],
"status": "<string>"
}Validate the provided objects.
import requests
url = "https://{FUSION HOST}/api/objects/validate"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"contentDisposition\"\r\n\r\n{\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"entity\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"headers\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"mediaType\"\r\n\r\n{\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"messageBodyWorkers\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parent\"\r\n\r\n{\r\n \"contentDisposition\": {\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n },\r\n \"entity\": {},\r\n \"headers\": {},\r\n \"mediaType\": {\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n },\r\n \"messageBodyWorkers\": {},\r\n \"parent\": \"<unknown>\",\r\n \"providers\": {},\r\n \"bodyParts\": [\r\n {\r\n \"contentDisposition\": {\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n },\r\n \"entity\": {},\r\n \"headers\": {},\r\n \"mediaType\": {\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n },\r\n \"messageBodyWorkers\": {},\r\n \"parent\": \"<unknown>\",\r\n \"providers\": {},\r\n \"parameterizedHeaders\": {}\r\n }\r\n ],\r\n \"parameterizedHeaders\": {}\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"providers\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"bodyParts\"\r\n\r\n{\r\n \"contentDisposition\": {\r\n \"type\": \"<string>\",\r\n \"parameters\": {},\r\n \"fileName\": \"<string>\",\r\n \"creationDate\": \"2023-11-07T05:31:56Z\",\r\n \"modificationDate\": \"2023-11-07T05:31:56Z\",\r\n \"readDate\": \"2023-11-07T05:31:56Z\",\r\n \"size\": 123\r\n },\r\n \"entity\": {},\r\n \"headers\": {},\r\n \"mediaType\": {\r\n \"type\": \"<string>\",\r\n \"subtype\": \"<string>\",\r\n \"parameters\": {},\r\n \"wildcardType\": true,\r\n \"wildcardSubtype\": true\r\n },\r\n \"messageBodyWorkers\": {},\r\n \"parent\": \"<unknown>\",\r\n \"providers\": {},\r\n \"parameterizedHeaders\": {}\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fields\"\r\n\r\n{}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"parameterizedHeaders\"\r\n\r\n{}\r\n-----011000010111000001101001--"
headers = {"Content-Type": "multipart/form-data; boundary=---011000010111000001101001"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"conflicts": [
"<string>"
],
"variablesWarnings": [
"<string>"
],
"variablesErrors": [
"<string>"
],
"variablesSubstitutions": [
"<string>"
],
"validationWarnings": [
"<string>"
],
"validationErrors": [
"<string>"
],
"importErrors": [
"<string>"
],
"importActions": [
"<string>"
],
"zipFileToken": "<string>",
"transformationMsgs": [
"<string>"
],
"status": "<string>"
}The objects to validate.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
successful operation
Was this page helpful?