| POST,OPTIONS | /v1/fieldlog/photo |
|---|
"use strict";
export class FieldLogPhoto {
/** @param {{Key?:string,Url?:string,FileName?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Key;
/** @type {string} */
Url;
/** @type {string} */
FileName;
}
export class FieldLogPhotoResponse {
/** @param {{ResponseStatus?:ResponseStatus,Success?:boolean,Photos?:FieldLogPhoto[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {boolean} */
Success;
/** @type {FieldLogPhoto[]} */
Photos = [];
}
export class FieldLogPhotoRequest {
/** @param {{FieldLogUID?:string,Section?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FieldLogUID;
/** @type {string} */
Section;
}
JavaScript FieldLogPhotoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/fieldlog/photo HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"FieldLogUID":"00000000000000000000000000000000","Section":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Success":false,"Photos":[{"Key":"String","Url":"String","FileName":"String"}]}