GET, POST | /api/objects/getscripts | ||
---|---|---|---|
GET, POST | /api/objects/{ObjectIds}/scripts | Obsolete |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ObjectIds | path | List<string> | No | |
Fields | body | List<string> | No | |
ClientRequestHandle | body | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
data | form | Dictionary<string, int> | No | |
DomainScripts | form | Dictionary<int, DomainScriptList> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ReplyInfo | form | ReplyInfo | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
RcvTime | form | double | No | |
ReplyTime | form | double | No | |
ClientRequestHandle | form | string | No | |
Error | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Scripts | form | List<DomainScript> | No | |
DomainID | form | int | No | |
DomainName | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ScriptId | form | int? | No | |
Name | form | string | No | |
SchemaId | form | int? | No | |
DomainId | form | int? | No | |
Script | form | string | No | |
Settings | form | Dictionary<string, string> | No | |
ScriptType | form | int? | No | |
ScheduleType | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/objects/getscripts HTTP/1.1
Host: mdn.bazefield.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
objectIds:
[
String
],
fields:
[
String
],
clientRequestHandle: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { data: { String: 0 }, domainScripts: { 0: { scripts: [ { scriptId: 0, name: String, schemaId: 0, domainId: 0, script: String, settings: { String: String }, scriptType: 0, scheduleType: 0 } ], domainID: 0, domainName: String } }, replyInfo: { rcvTime: 0, replyTime: 0, clientRequestHandle: String, error: String } }