Assets

Update an asset

Changed on

Updates the name or visibility of an asset. With API-key auth the asset must be owned by the key owner; organization-shared assets can only be updated by an admin/owner session.

patch/v2/assets/{id}

Request

  • Base URL
    https://api.sync.so
  • Auth
    API key in header x-api-key

Path parameters

idstring required

Asset ID

Request body

namestring
visibility'USER' | 'ORGANIZATION'
durationSecondsnumber
sizeinteger
formatstring
widthinteger
heightinteger

Response

Asset updated successfully

idstring required
createdAtstring date-time required
updatedAtstring date-time required
deletedAtstring date-time nullable required
namestring nullable required
urlstring nullable required
sizenumber nullable required
formatstring nullable required
type'AUDIO' | 'VIDEO' | 'IMAGE' required
inputType'UPLOAD' | 'URL' | 'RECORD' | 'TTS' | 'EXTRACT' | 'DUB' | 'DUB_SOURCE' | 'PLATFORM_IMPORT' | 'DIALOGUE_EDIT' | 'PLUGIN_PREMIERE_FILE' | 'PLUGIN_PREMIERE_TIMELINE_SELECTION' | 'PLUGIN_RESOLVE_FILE' | 'PLUGIN_RESOLVE_TIMELINE_SELECTION' nullable required
durationSecondsnumber nullable required
thumbnailUrlstring nullable required
visibility'USER' | 'ORGANIZATION' required
userIdstring nullable required
apiKeyIdstring nullable required
organizationIdstring required
widthnumber nullable required
heightnumber nullable required
proxyPathstring nullable
projectIdstring nullable

Changes

    • info

      the response's property pattern was changed from ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ to (?:^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$)|(?:^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?:Z))$) for the status

    • info

      the / response's property pattern was changed from ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ to (?:^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$)|(?:^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?:Z))$) for the status

    • info

      the response's property pattern was changed from ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ to (?:^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$)|(?:^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?:Z))$) for the status

    • breaking

      response property apiKeyId list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property deletedAt list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property durationSeconds list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property format list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property height list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property inputType list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property name list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property projectId list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property proxyPath list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property size list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property thumbnailUrl list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property url list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property userId list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property width list-of-types was widened by adding types null to media type application/json of response 200

    • info

      the request property's exclusiveMinimum was decreased from true to 0.00

    • info

      the request property's exclusiveMinimum was decreased from true to 0.00

    • info

      the request property's exclusiveMinimum was decreased from true to 0.00

    • info

      the request property's exclusiveMinimum was decreased from true to 0.00

    • info

      removed the DIALOGUE_EDIT enum value from the response property for the response status

    • info

      removed the DUB enum value from the response property for the response status

    • info

      removed the DUB_SOURCE enum value from the response property for the response status

    • info

      removed the EXTRACT enum value from the response property for the response status

    • info

      removed the PLATFORM_IMPORT enum value from the response property for the response status

    • info

      removed the PLUGIN_PREMIERE_FILE enum value from the response property for the response status

    • info

      removed the PLUGIN_PREMIERE_TIMELINE_SELECTION enum value from the response property for the response status

    • info

      removed the PLUGIN_RESOLVE_FILE enum value from the response property for the response status

    • info

      removed the PLUGIN_RESOLVE_TIMELINE_SELECTION enum value from the response property for the response status

    • info

      removed the RECORD enum value from the response property for the response status

    • info

      removed the TTS enum value from the response property for the response status

    • info

      removed the UPLOAD enum value from the response property for the response status

    • info

      removed the URL enum value from the response property for the response status

    • info

      removed the undefined enum value from the response property for the response status

    • info

      the response's property pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ was removed for the status

    • info

      the response's property pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ was removed for the status

    • info

      the response's property pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ was removed for the status

    • info

      the response's property pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ was removed for the status