Table Of Contents

Previous topic

Similar target | POST /similar/

Next topic

Search The Target | POST Client-end-URL/search/

Modify target | PUT /target/<target_id>

Modify target.

Action

PUT /target/<target_id>

Authentication

Yes

Request parameters

Field Type Required Description
image String(base64 encoded) No base64(image),jpg and png are supported
active String No “1” is active,”0” is inactive。 Default is “1”
name String No Target Name. ASCII character, numbers and punctuation can be supported, and characters length is limited between 1 and 64
size String(Float) No Width of target image ( cm )。The hight( or length) of the image will be computed by system. Help mapping the virtual object to target image
meta String No Custemized info, base64 encoded. </br> Important Note: the value can be empty but required. Default is 20
allowSimilar String No Force to add image if similar targets exist

Response fields

Same as POST /targets/

Example

Request

PUT /target/e61db301-e80f-4025-b822-9a00eb48d8d2 HTTP/1.1
Host:
Date: Mon, 1 Jan 2018 00:00:00 GMT
Content-Type: application/json
{
    "active":"1",
    "name":"easyar",
    "size":"5",
    "meta":"496fbbabc2b38ecs3460a...",
    "timestamp": 1514736000000,
    "appKey": "test_app_key",
    "signature": "89985e2420899196db5bdf16b3c2ed0922c0c221"
}

Response

HTTP/1.1 200 OK
Content-Type: application/json
{
    "statusCode": 0,
    "result": {
        "targetId":"e61db301-e80f-4025-b822-9a00eb48d8d2",
        "trackingImage":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgM...",
        "name": "easyar",
        "size": "5",
        "meta": "496fbbabc2b38ecs3460a...",
        "type": "ImageTarget",
        "date": "2016-06-15T09:56:30.000Z",
        "active":"1",
        "trackableRate": 0,
        "detectableRate": 0,
        “detectableDistinctiveness”:0,
        "detectableFeatureCount", 0,
        "trackableDistinctiveness", 0,
        "trackableFeatureCount", 0,
        "trackableFeatureDistribution", 0,
        "trackablePatchContrast", 0,
        "trackablePatchAmbiguity", 0
    },
    "timestamp": 1514736000000
}