| PUT | /crops_cylinders/{Id} |
|---|
export class CropsCylindersEditResponse
{
// @DataMember(Order=1)
public id: number;
// @DataMember(Order=2)
public tenantsId: number;
// @DataMember(Order=3)
public zonesId: number;
// @DataMember(Order=4)
public cropsId: number;
// @DataMember(Order=5)
public thickness: string;
// @DataMember(Order=6)
public colour: string;
// @DataMember(Order=7)
public imageUrl: string;
// @DataMember(Order=8)
public responseStatus: ResponseStatus;
public constructor(init?: Partial<CropsCylindersEditResponse>) { (Object as any).assign(this, init); }
}
// @DataContract
export class CropsCylindersEdit
{
// @DataMember(Order=1)
// @Validate(Validator="NotNull")
public id: number;
// @DataMember(Order=2)
// @Validate(Validator="NotNull")
public tenantsId: number;
// @DataMember(Order=3)
// @Validate(Validator="NotNull")
public zonesId: number;
// @DataMember(Order=4)
// @Validate(Validator="NotNull")
public cropsId: number;
// @DataMember(Order=5)
// @Validate(Validator="NotNull")
public thickness: string;
// @DataMember(Order=6)
// @Validate(Validator="NotNull")
public colour: string;
// @DataMember(Order=7)
// @Validate(Validator="NotNull")
public imageUrl: string;
public constructor(init?: Partial<CropsCylindersEdit>) { (Object as any).assign(this, init); }
}
TypeScript CropsCylindersEdit 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /crops_cylinders/{Id} HTTP/1.1
Host: api.sfgtec.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":0,"tenantsId":0,"zonesId":0,"cropsId":0,"thickness":"String","colour":"String","imageUrl":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":0,"tenantsId":0,"zonesId":0,"cropsId":0,"thickness":"String","colour":"String","imageUrl":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}