---
agentTools:
  projectIndex: https://percolate.dev/llms.txt
---

# /api/v5/asset/

A new asset will be created that duplicates the referenced source asset.  All basic metadata (e.g. name) will be copied but comments, followers, etc. will *not* be replicated.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Percolate V5 OpenAPI Specification",
    "description": "The Percolate API is RESTful in nature. Our APIs use HTTP resource-oriented URLs. HTTP methods are used to issue requests. HTTP response codes are used to indicate API successes or failures. All API requests and responses are in JSON representation. This document describes the HTTP resources and methods that form the Percolate API.\n",
    "version": "1.0.0",
    "contact": {
      "name": "Percolate Engineering"
    }
  },
  "servers": [
    {
      "url": "https://percolate.com"
    },
    {
      "url": "https://devolate.com"
    }
  ],
  "tags": [
    {
      "name": "Asset"
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "description": "Percolate supports OAuth 2.0 for authenticating all API requests.\n",
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://percolate.com/api/v5/authorize",
            "tokenUrl": "https://percolate.com/api/v5/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "paths": {
    "/api/v5/asset/": {
      "post": {
        "description": "A new asset will be created that duplicates the referenced source asset.  All basic metadata (e.g. name) will be copied but comments, followers, etc. will *not* be replicated.",
        "operationId": "createAsset",
        "tags": [
          "Asset"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "folder_id": {
                    "title": "folder_id",
                    "type": "string",
                    "description": "The folder ID.",
                    "pattern": "^folder:\\d+$"
                  },
                  "source_id": {
                    "type": "string",
                    "description": "The asset ID.",
                    "example": "asset:11",
                    "pattern": "^asset:\\d[\\d_-]*$"
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "description": "A new asset was created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "title": "Asset",
                      "type": "object",
                      "description": "An object that appears in the asset manager, campaigns, creative and many other parts of the Percolate platform.\n",
                      "additionalProperties": false,
                      "example": {
                        "id": "asset:541291612888971234",
                        "created_at": "2014-07-21T23:10:18Z",
                        "updated_at": "2014-07-21T23:10:18Z",
                        "type": "video",
                        "content_type": "video/mp4",
                        "created_through": "web",
                        "filename": "video.mp4",
                        "folder_id": "folder:559732754204150636",
                        "creator_id": "user:1",
                        "size": 1234567890,
                        "deleted": false,
                        "path_ids": [
                          "folder:12345"
                        ],
                        "scope_id": "license:1",
                        "original_created_at": "2014-07-21T23:10:18Z",
                        "status": "ready",
                        "related_campaign_post_ids": [
                          "campaign:559732754204150636"
                        ],
                        "related_campaign_section_ids": [
                          "campaign:559732754204150637"
                        ],
                        "related_object_ids": [
                          "campaign_section:559732754204150636",
                          "post:559732754204150636"
                        ],
                        "ext": {
                          "dimensions": {
                            "width": 720,
                            "height": 480,
                            "unit": "pixels"
                          },
                          "duration": 30,
                          "orientation": "landscape"
                        }
                      },
                      "required": [
                        "content_type",
                        "created_at",
                        "created_through",
                        "creator_id",
                        "deleted",
                        "ext",
                        "filename",
                        "folder_id",
                        "id",
                        "scope_id",
                        "size",
                        "status",
                        "type",
                        "updated_at",
                        "metadata",
                        "original_created_at"
                      ],
                      "properties": {
                        "content_type": {
                          "type": "string",
                          "example": "application/pdf",
                          "description": "The MIME type of this content",
                          "pattern": "^\\w+\\/[-.A-Za-z0-9_]+(?:\\+[\\w]+)?$"
                        },
                        "created_at": {
                          "title": "created_at",
                          "description": "An absolute datetime indicating when this resource was created.",
                          "example": "2014-06-10T00:00:00Z",
                          "format": "date-time",
                          "type": "string",
                          "nullable": true
                        },
                        "created_through": {
                          "type": "string",
                          "description": "The origination of the asset",
                          "maxLength": 64
                        },
                        "creator_id": {
                          "title": "user_id",
                          "type": "string",
                          "description": "The user ID.",
                          "pattern": "^user:\\d+$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "description": "Is this asset deleted?"
                        },
                        "ext": {
                          "oneOf": [
                            {
                              "title": "Video",
                              "type": "object",
                              "description": "A video (MP4, AVI, MOV, WMV, etc.)",
                              "additionalProperties": false,
                              "required": [
                                "dimensions",
                                "duration",
                                "orientation"
                              ],
                              "properties": {
                                "dimensions": {
                                  "title": "Dimensions",
                                  "description": "The size of the object.",
                                  "type": "object",
                                  "nullable": true,
                                  "properties": {
                                    "width": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "height": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "unit": {
                                      "type": "string",
                                      "description": "The unit of the `width` and `height` properties.",
                                      "enum": [
                                        "pixels",
                                        "inches",
                                        "centimeters",
                                        "picas",
                                        "points"
                                      ]
                                    }
                                  }
                                },
                                "duration": {
                                  "type": "number",
                                  "description": "The playing time in seconds",
                                  "minimum": 0
                                },
                                "orientation": {
                                  "type": "string",
                                  "description": "The major axis the asset content",
                                  "enum": [
                                    "square",
                                    "landscape",
                                    "portrait"
                                  ]
                                }
                              },
                              "example": {
                                "dimensions": {
                                  "width": 720,
                                  "height": 480,
                                  "unit": "pixels"
                                },
                                "duration": 30,
                                "orientation": "landscape"
                              }
                            },
                            {
                              "title": "Audio",
                              "type": "object",
                              "description": "An audio stream (MP3, AIFF, OGG, WAV, etc.)",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "number",
                                  "description": "The playing time in seconds",
                                  "minimum": 0
                                }
                              },
                              "example": {
                                "duration": 30
                              }
                            },
                            {
                              "title": "Image",
                              "type": "object",
                              "description": "An image (SVG, PNG, BMP, GIF, JPEG, etc.)",
                              "additionalProperties": false,
                              "required": [
                                "dimensions",
                                "orientation"
                              ],
                              "properties": {
                                "dimensions": {
                                  "title": "Dimensions",
                                  "description": "The size of the object.",
                                  "type": "object",
                                  "nullable": true,
                                  "properties": {
                                    "width": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "height": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "unit": {
                                      "type": "string",
                                      "description": "The unit of the `width` and `height` properties.",
                                      "enum": [
                                        "pixels",
                                        "inches",
                                        "centimeters",
                                        "picas",
                                        "points"
                                      ]
                                    }
                                  }
                                },
                                "orientation": {
                                  "type": "string",
                                  "description": "The major axis the asset content",
                                  "enum": [
                                    "square",
                                    "landscape",
                                    "portrait"
                                  ]
                                },
                                "copyright": {
                                  "type": "string",
                                  "description": "The copyright(s) on the image"
                                },
                                "captured_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "description": "The datetime when the image was captured"
                                },
                                "device_maker": {
                                  "type": "string",
                                  "description": "The maker of the device capturing the image"
                                },
                                "device_model": {
                                  "type": "string",
                                  "description": "The model of the device capturing the image"
                                },
                                "focal_length": {
                                  "type": "string",
                                  "description": "The focal length of the device capturing the image"
                                },
                                "iso": {
                                  "type": "integer",
                                  "description": "The light sensitivity settings used in this image"
                                },
                                "exposure_mode": {
                                  "type": "string",
                                  "description": "The exposure mode used in the image"
                                },
                                "aperture": {
                                  "type": "string",
                                  "description": "The aperture used in the image"
                                },
                                "shutter_speed": {
                                  "type": "string",
                                  "description": "The shutter speed used in the image"
                                },
                                "flash": {
                                  "type": "boolean",
                                  "description": "Was a flash was used in this image?"
                                },
                                "gps_coordinates": {
                                  "type": "string",
                                  "description": "The GPS coordinates where this image was captured"
                                },
                                "photosphere": {
                                  "type": "boolean",
                                  "description": "Does this image contains Photosphere XMP metadata?"
                                }
                              },
                              "example": {
                                "dimensions": {
                                  "width": 720,
                                  "height": 480,
                                  "unit": "pixels"
                                },
                                "orientation": "landscape"
                              }
                            },
                            {
                              "title": "Document, PDF, or Presentation",
                              "additionalProperties": false,
                              "type": "object",
                              "description": "A document (HTML, Apple Pages, Microsoft Word, etc.), a PDF, or a presentation (Apple Keynote, Microsoft Powerpoint, etc.)",
                              "properties": {
                                "dimensions": {
                                  "title": "Dimensions",
                                  "description": "The size of the object.",
                                  "type": "object",
                                  "nullable": true,
                                  "properties": {
                                    "width": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "height": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "unit": {
                                      "type": "string",
                                      "description": "The unit of the `width` and `height` properties.",
                                      "enum": [
                                        "pixels",
                                        "inches",
                                        "centimeters",
                                        "picas",
                                        "points"
                                      ]
                                    }
                                  }
                                },
                                "orientation": {
                                  "type": "string",
                                  "description": "The major axis the asset content",
                                  "enum": [
                                    "square",
                                    "landscape",
                                    "portrait"
                                  ]
                                },
                                "page_count": {
                                  "type": "integer",
                                  "description": "The number of pages in a paginated asset",
                                  "minimum": 0
                                }
                              },
                              "example": {
                                "orientation": "landscape"
                              }
                            },
                            {
                              "title": "Spreadsheet or Other",
                              "additionalProperties": false,
                              "type": "object",
                              "example": {}
                            }
                          ]
                        },
                        "filename": {
                          "type": "string",
                          "description": "The filename of the asset",
                          "example": "kittens.mp4",
                          "maxLength": 255
                        },
                        "folder_id": {
                          "title": "folder_id",
                          "type": "string",
                          "description": "The folder ID.",
                          "pattern": "^folder:\\d+$"
                        },
                        "id": {
                          "type": "string",
                          "description": "The asset ID.",
                          "example": "asset:11",
                          "pattern": "^asset:\\d[\\d_-]*$"
                        },
                        "path_ids": {
                          "type": "array",
                          "description": "List of parent folder ids",
                          "items": {
                            "type": "string"
                          }
                        },
                        "scope_id": {
                          "title": "license_scope_id",
                          "description": "A valid license ID `^license:\\d+$`.",
                          "type": "string",
                          "pattern": "^license:\\d+$",
                          "example": "license:1"
                        },
                        "size": {
                          "type": "integer",
                          "description": "The size of the asset content in bytes",
                          "minimum": 0
                        },
                        "status": {
                          "type": "string",
                          "description": "The transcoding status of the asset",
                          "enum": [
                            "processing",
                            "ready",
                            "error"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "description": "The Percolate defined asset type",
                          "enum": [
                            "artwork",
                            "audio",
                            "document",
                            "image",
                            "pdf",
                            "presentation",
                            "spreadsheet",
                            "video",
                            "other"
                          ]
                        },
                        "updated_at": {
                          "title": "updated_At",
                          "description": "An absolute datetime indicating when this resource was last modified.",
                          "example": "2014-06-10T00:00:00Z",
                          "format": "date-time",
                          "type": "string"
                        },
                        "original_created_at": {
                          "title": "original_created_at",
                          "description": "An absolute datetime indicating when the original version of the  resource was created.",
                          "example": "2014-06-10T00:00:00Z",
                          "format": "date-time",
                          "type": "string",
                          "nullable": true
                        },
                        "metadata": {
                          "description": "Metadata associated with a asset object (Preview).",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "description": "A metadata object associated with its parent object (Preview).",
                            "required": [
                              "schema_id",
                              "updated_at",
                              "ext"
                            ],
                            "properties": {
                              "schema_id": {
                                "type": "string",
                                "description": "The schema ID.",
                                "pattern": "^schema:\\d[_\\d]*$"
                              },
                              "updated_at": {
                                "title": "updated_At",
                                "description": "An absolute datetime indicating when this resource was last modified.",
                                "example": "2014-06-10T00:00:00Z",
                                "format": "date-time",
                                "type": "string"
                              },
                              "ext": {
                                "type": "object",
                                "description": "The metadata values defined by `schema_id`"
                              }
                            }
                          }
                        },
                        "related_object_ids": {
                          "description": "An array of campaign object ids associated with the asset.",
                          "type": "array",
                          "nullable": true,
                          "items": {
                            "title": "campaign_id",
                            "type": "string",
                            "pattern": "^campaign:\\d+$",
                            "example": "campaign:1",
                            "description": "The unique campaign ID."
                          }
                        },
                        "related_campaign_section_ids": {
                          "description": "An array of section campaign ids associated with the asset.",
                          "type": "array",
                          "nullable": true,
                          "items": {
                            "title": "campaign_id",
                            "type": "string",
                            "pattern": "^campaign:\\d+$",
                            "example": "campaign:1",
                            "description": "The unique campaign ID."
                          }
                        },
                        "related_campaign_post_ids": {
                          "description": "An array of post campaign ids associated with the asset.",
                          "type": "array",
                          "nullable": true,
                          "items": {
                            "title": "campaign_id",
                            "type": "string",
                            "pattern": "^campaign:\\d+$",
                            "example": "campaign:1",
                            "description": "The unique campaign ID."
                          }
                        }
                      }
                    },
                    "include": {
                      "type": "object",
                      "description": "An array of objects keyed by ID type (ex. `{ user: [] }`). ID type keys will only exist when a resource(s) is requested with the `?include=` query parameter.\n"
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "data": {
                        "id": "asset:541291612888971234",
                        "created_at": "2014-07-21T23:10:18Z",
                        "updated_at": "2014-07-21T23:10:18Z",
                        "type": "video",
                        "content_type": "video/mp4",
                        "created_through": "web",
                        "filename": "video.mp4",
                        "folder_id": "folder:559732754204150636",
                        "creator_id": "user:1",
                        "size": 1234567890,
                        "deleted": false,
                        "path_ids": [
                          "folder:12345"
                        ],
                        "scope_id": "license:1",
                        "original_created_at": "2014-07-21T23:10:18Z",
                        "status": "ready",
                        "related_campaign_post_ids": [
                          "campaign:559732754204150636"
                        ],
                        "related_campaign_section_ids": [
                          "campaign:559732754204150637"
                        ],
                        "related_object_ids": [
                          "campaign_section:559732754204150636",
                          "post:559732754204150636"
                        ],
                        "ext": {
                          "dimensions": {
                            "width": 720,
                            "height": 480,
                            "unit": "pixels"
                          },
                          "duration": 30,
                          "orientation": "landscape"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Invalid authorization or resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "405": {
            "description": "Method not allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Rate limit. Response should contain a `Retry-After` header",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "description": "A list of error objects for a given operation.",
                      "items": {
                        "description": "An error object",
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "code": {
                            "description": "An arbitrary error code",
                            "type": "string",
                            "nullable": true
                          },
                          "message": {
                            "description": "A human readable message description what the error was.",
                            "type": "string",
                            "nullable": true
                          },
                          "key": {
                            "description": "A subset of [JSONPath](http://goessner.net/articles/JsonPath/) format to identify which part of the input data triggered the error. The value may also be `null` to indicate errors that aren't specific to one input field.",
                            "type": "string",
                            "nullable": true
                          },
                          "value": {
                            "description": "A value associated with the error. Useful for eg. validation errors where it may be desirable to report which input value of many was bad.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "code"
                        ]
                      }
                    }
                  }
                },
                "example": {
                  "errors": [
                    {
                      "code": "input:invalid_value",
                      "message": "Invalid attribute(s) given: foo",
                      "key": "$.include",
                      "value": "foo"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 93,
      "1": 205,
      "2": 195,
      "3": 215,
      "4": 75,
      "5": 71,
      "6": 148,
      "7": 0,
      "8": 18,
      "9": 126,
      "10": 128,
      "11": 225
    }
  }
}
```