Image Upload

This endpoint allows the caller to upload a new image asset for scoring.

Specification

Endpoint: /bg/image/{bid:uuid}/

Method: POST

URL Parameters:

   {id}: uuid

Request Type: multipart upload

Response Type: {

media {

      id uuid

      account_id uuid

      brand_id uuid

      uploaded_by uuid

      md5 uuid

      mimetype string

      mimetype_md5 uuid

      created_at ISO8601

      updated_at ISO8601

      tombstoned_at ISO8601

      scored_at ISO8601

      description string

}

event {

      id uuid

      account_id uuid

      brand_id uuid

      approved integer

      observation integer

      confidence float

      brand_uniqueness float

      brand_voice float

      sexually_explicit float

      quality_general float

      image_violence float

}

  }

Sample Request: curl -X POST -F "file=@/path/to/your/file" https://api.novacloud.ai/bg/image/00000000-0000-0000-0000-000000000000/

Sample Response: {

"media": {

      "id": "11111111-1111-1111-1111-111111111111",

      "account_id": "00000000-0000-0000-0000-000000000000",

      "brand_id": "00000000-0000-0000-0000-000000000000",

      "uploaded_by": "00000000-0000-0000-0000-000000000000",

      "md5": "00000000-0000-0000-0000-000000000000",

      "mimetype": "image/png",

      "mimetype_md5": "00000000-0000-0000-0000-000000000000",

      "created_at": "2023-10-16T00:00:00Z",

      "updated_at": "2023-10-16T00:00:00Z",

      "tombstoned_at": "2023-10-16T00:00:00Z",

      "scored_at": "2023-10-16T00:00:00Z",

      "description": "description"

},

"event": {

      "id": "00000000-0000-0000-0000-000000000000",

      "account_id": "00000000-0000-0000-0000-000000000000",

      "brand_id": "00000000-0000-0000-0000-000000000000",

      "approved": 0,

      "observation": 0,

      "queue": "00000000-0000-0000-0000-000000000000",

      "confidence": 0.0,

      "brand_uniqueness": 0.0,

      "brand_voice": 0.0,

      "sexually_explicit": 0.0,

      "quality_general": 0.0,

      "image_violence": 0.0

}

}