Trendsic Platform Service

<back to all web services

FieldLogPhotoRequest

Requires Authentication
The following routes are available for this service:
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"FieldLogUID":"00000000000000000000000000000000","Section":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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"}]}