Upsert Custom CAL Package File
post
/content/sim/v2/setup/cal/upsertCustomPackageFile
Updates provided fields if the Custom CAL Package File exists; inserts a new Custom CAL Package File if it does not.
Request
Supported Media Types
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
Form Parameters
-
content(required): file
The Custom CAL Package File to upload.
-
metadata(required): string
JSON metadata for upserting a Custom CAL Package File. If fileId identifies an existing file, the file is updated. If fileId is omitted or does not identify an existing file, a new file is inserted and packageId is required. platformType is optional and defaults to 0.Example:
{"packageId":101,"platformType":50}
Response
Supported Media Types
- application/json
200 Response
Custom CAL Package File updated.
Root Schema : schema
Type:
Show Source
object-
fileId:
integer
Unique reference of the Custom CAL Package File.Example:
17016 -
packageId:
integer
Unique reference of the Custom CAL Package.Example:
101
201 Response
Custom CAL Package File added.
Root Schema : schema
Type:
Show Source
object-
fileId:
integer
Unique reference of the Custom CAL Package File.Example:
17016 -
packageId:
integer
Unique reference of the Custom CAL Package.Example:
101