{"variables":[],"info":{"name":"Webdam Workstream Postman Collection","_postman_id":"0993ff42-6fc0-4f60-8caf-75fe5c6551ac","description":"","schema":"https:\/\/schema.getpostman.com\/json\/collection\/v2.0.0\/collection.json"},"item":[{"name":"Approvals\n\nAPIs to get and send approvals.","description":"","item":[{"name":"Get all approvals","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals?sort=updated_at&sortdir=desc&filter[template_parent_id][]=31957&offset=1615257564&limit=75","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns a list of approvals you can view.
\nkey:<\/b> The access key. Any approval APIs that reference a key must use this.\nIt is unique per approver.
\nstatus:<\/b> 1 (pending), 2 (approved), -1 (deleted\/canceled)
\nowner:<\/b> The user object who created this approval.
\nowner:<\/b> The user object who created this approval.
\nobject_type:<\/b> Currently always 1 (asset).
\ntemplate:<\/b> Contains the template object if this is a templated approval, else will return null.
\ncurrent_stage_id:<\/b> The current stage of a template (0 if there is no template).
\nobject:<\/b> The object up for approval (currently always an asset).
\nproof:<\/b> Currently always null.
\nsettings:<\/b> Currently always null.
\ncurrent_stage_responses:<\/b> All the current approvers. If it is a templated approval,\nit will only display the approvers on the current stage..
\ncurrent_stage_responses[0][response]:<\/b> The approver's response. 1 (pending), 2\n(approved), 3 (rejected), 4 (approved with changes).
\ncurrent_stage_responses[0][user_id]:<\/b> User ID, if applicable.
\ncurrent_stage_responses[0][user_email]:<\/b> Email, if applicable.
\ncurrent_stage_responses[0][approver_user]:<\/b> Approver user, if applicable. If this is\na team approver and no response has yet been logged, this will contain empty data.\nIf it is a team approver and a user has responded, it will contain the user who\nresponded.
\ncurrent_stage_responses[0][secondary_approver]:<\/b> This will be null unless it is\na team approval, in which case it will contain the team object.
\ncurrent_stage_responses[0][secondary_approver_id]:<\/b> Team ID, if applicable.
\ncurrent_stage_responses[0][secondary_approver_type]:<\/b> Currently either null\n(user\/guest approver) or 1 (team approver).
\ncurrent_stage_responses[0][stage]:<\/b> Currently always null.
\ncurrent_approver:<\/b> Currently always null.
\nall_stage_responses:<\/b> Currently always null.
\nis_approver:<\/b> Whether or not the current user can view the options to\napprove\/reject\/approve with changes. If this is false, the current user is not\ninvolved in the process via the given key, and can view but not respond to the\napproval.
\ncomments:<\/b> The original comments sent out with the approval.
","response":[]}},{"name":"Get count of pending approvals","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/counts","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns an array of applicable counts for approvals. Currently\njust returns \"pending_count\", which is the number of approvals\ncurrently pending the logged-in user's approval.","response":[]}},{"name":"Get approval by key","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get an approval by a given key. If the key is associated\nwtih an approver, you will be viewing the data as that approver.\nIf the key is a default view-only key, it will only be accessible\nif you are the owner of the approval, or if you are an admin.","response":[]}},{"name":"Get approval comments","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/comments","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get all comments associated with a given approval. Approval owners & admins can\nview all the comments, but other users can only view comments in the current stage,\nprovided comments are enabled.","response":[]}},{"name":"Send a reminder","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/remind","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"recipient_type\":\"4\",\"recipient_id\":33440,\"message\":\"rerum\"}"},"description":"Sends a reminder to respond to the approval to the requested recipient_type.
\nrecipient_type 3 is the approver, and must have a recipient_id passed in according to a current_stage_responses id.
\nrecipient_type 4 is a user, and must have a recipient_id passed in coorresponding to a user_id.
\nrecipient_type 5 sends a reminder to all approvers who have not responded on the current step of the approval (all if not a templated approval).
","response":[]}},{"name":"Resubmit approval","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/resubmit\/{approvalResponseId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"send_reminder\":true,\"message\":\"eos\"}"},"description":"Given an approval and an approval responder's response ID, performing\nthis action will reset their response to \"pending\". If \"send_reminder\"\nis passed in as true, a reminder email will be sent to the approver(s).","response":[]}},{"name":"Respond to approval","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/response","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"message\":\"dolores\",\"response\":\"2\",\"approval_response_id\":40}"},"description":"Respond to an approval for either a given approval response ID (in the\ncurrent_stage_responses array as part of the Approval object), or the current user\nassociated by the key. Note: You will only be able to change the response if the\ncurrent responder's stage ID is the same as the current_stage_id returned in the\nsuccessfully updated Approval object, and if the returned Approval object\nis still of status \"pending\" (1). A successful response will contain an approval object.\n
\nmessage:<\/b> An optional comment you'd like to associate with your response.
\nresponse:<\/b> The response you are giving. Must be either: 2 (approved),\n3 (rejected), or 4 (approve with changes).
\napproval_response_id:<\/b> The approval response ID associated with the approver\nuser the current user is responding for, as long as you are the owner of the\napproval or if you are an admin. If this is not set, you will be submitting\nthe response as the user associated with the given key.","response":[]}},{"name":"Cancel approval","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/cancel","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"PUT","body":{"mode":"raw","raw":"[]"},"description":"Given an approval key, cancels the approval. No notifications go out for this action.","response":[]}},{"name":"Check asset for approval (folder)","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{folderId}\/assets\/{assetId}\/approvals","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns a limited approval object associated with a given asset. If the user has no\naccess to the asset through the given folder, the API will return a 403. If there is an\nissue retrieving the approval, the API will return a 404. If there is no approval for\nthe given asset but the user can create one, the API will return a 200 success.","response":[]}},{"name":"Check asset for approval (project)","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{projectId}\/assets\/{assetId}\/approvals","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns a limited approval object associated with a given asset. If the user has no\naccess to the asset through the given folder, the API will return a 403. If there is an\nissue retrieving the approval, the API will return a 404. If there is no approval for\nthe given asset but the user can create one, the API will return a 200 success.","response":[]}},{"name":"Check asset for approval (task)","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{taskId}\/assets\/{assetId}\/approvals","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns a limited approval object associated with a given asset. If the user has no\naccess to the asset through the given folder, the API will return a 403. If there is an\nissue retrieving the approval, the API will return a 404. If there is no approval for\nthe given asset but the user can create one, the API will return a 200 success.","response":[]}},{"name":"Get approval details URL","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{id}\/assets\/{assetId}\/approvals\/url","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns a URL for iframing in the approval request\nor pending approval page based off your current authentication\ntoken. The url expires after use, or within 5 minutes of retrieving\nthis url. 400 on failure to authenticate, and 404 if there is\nan approval but you have no permission to edit or view it, or\nif the asset was not found.","response":[]}},{"name":"Create an approval","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{id}\/assets\/{assetId}\/approvals","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"[]"},"description":"Create an approval either following permissions for a given project, task, or folder.","response":[]}},{"name":"Create an approval","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}\/approvals","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"[]"},"description":"Create an approval either following permissions for a given project, task, or folder.","response":[]}},{"name":"Create an approval","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}\/approvals","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"[]"},"description":"Create an approval either following permissions for a given project, task, or folder.","response":[]}}]},{"name":"Forms\n\nAPIs to get forms.","description":"","item":[{"name":"Get all forms","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/forms?sort=updated_at&sortdir=asc&offset=754658510&limit=35&filter[status][]=24895&datatable=1","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get all forms the user has permission to see. Whether or not\na form should display when filling out a form relies on\n\"status\" of 1, which is an available filter. If you pass in\nthe \"datatable\" parameter, you will be able to view the current\nsort and filters, as well as additional form stats.","response":[]}},{"name":"Get form","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/forms\/{id}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"\"status\" is either 1 (active), 0 (inactive), or -1 (temporarily deleted).\nIf presenting this to a user to fill in, always have the \"Task name\" field\nas a required first field. The rest of the fields map as the following:\n15 (Dropdown), 16 (Radio), 17 (Checkbox), 18 (Datepicker), 20 (Static image),\n21 (Static title), 22 (Short answer), 23 (Long answer), 24 (Static description),\n19 (Attachments), 25 (Keywords), 26 (Due date), 27 (Project), 28 (Assignee), 30\n(Task description), and 31 (Email).","response":[]}}]},{"name":"Miscellaneous","description":"","item":[{"name":"Search users\/teams","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/shareoptions?limit=1465729320&filter[roles][]=18812&project_id=3749826&teams_enabled=1","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"The only available filter is \"roles\", which expects an array of user\nroles (1 (admin), 3 (brand portal user), 4 (contributor user), 5 (regular user)).\nIt only applies to users.\nBy default, teams_enabled is true as long as you have teams enabled\non your account. q is the query parameter you are searching for, which compares\nagainst user's name, user's email, or team's name.","response":[]}}]},{"name":"Projects\n\nAPIs to get projects.","description":"","item":[{"name":"Get all projects","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects?sort=owner_id&sortdir=asc&offset=692443972&limit=32&filter[sponsor_id][]=11682","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"","response":[]}},{"name":"Get project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"","response":[]}},{"name":"Get project assets","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets?offset=1963647349&limit=92&approval_status=1","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get all assets associated with a given project. Passing in the\n\"approval_status\" parameter will also return the \"approval\" object\nwith the response, which will either be null or an object like\nthe following: \"approval\": { \"key\": \"mxKs2BrstY%2AOfr4AO8m8TWedO7TYgF1SDdKrZJm9vDE%2C\", \"type\": \"approval\", \"status\": 1, \"current_stage_id\": 0, \"is_approver\": true, \"editable\": true }","response":[]}},{"name":"Get project asset by ID","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns the project asset object using project permissions.","response":[]}},{"name":"Get project asset's versions","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}\/versions","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns the project asset versions using project permissions.","response":[]}},{"name":"Get project watchers","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/watchers?offset=1178984422&limit=55","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get all watchers associated with a given project.","response":[]}},{"name":"Add asset to project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"[]"},"description":"Associate a single asset to a project.","response":[]}},{"name":"Add assets to project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"assetids\":[24110]}"},"description":"Associate one or more assets to a project.","response":[]}},{"name":"Add watchers to project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/watchers","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"PUT","body":{"mode":"raw","raw":"{\"user_ids\":[36464],\"message\":\"qui\"}"},"description":"Add one or more users to a project.","response":[]}},{"name":"Remove asset from project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"[]"},"description":"Disassociate a single asset from a project. This does not delete the asset\nfrom the asset library.","response":[]}},{"name":"Remove assets from project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"{\"assetids\":[49420]}"},"description":"Disassociate one or more assets from a project. This does not delete the asset\nfrom the asset library.","response":[]}},{"name":"Remove watchers from project","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/watchers","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"{\"user_ids\":[18057],\"message\":\"ea\"}"},"description":"Remove one or more watchers from a project.","response":[]}}]},{"name":"Proofing\n\nAPIs to get, generate, and delete asset proofs.\nProofs are unique per asset. If you delete a proof, you will be deleting\naccess to all versions of the proof. If you try to generate a proof\non an earlier version of an already-proofed asset, the call will not\nbe able to complete.","description":"","item":[{"name":"Get folder asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using folder permissions, get an asset's proof.\nPossible statuses: 1 (valid), 2\/6 (pending), 3\/4\/5 (not created)","response":[]}},{"name":"Get folder asset proof URL","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{id}\/assets\/{assetId}\/proof\/url","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using folder permissions, get the URL to view an asset's proof.","response":[]}},{"name":"Generate folder asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"version\":1446135632}"},"description":"Using folder permissions, generate a proof for an asset.\n\"version\" is not required and works best if there is no\ncurrent proof for a given asset and you want to proof a previous\nversion.","response":[]}},{"name":"Delete folder asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/folders\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"[]"},"description":"Using folder permissions, delete an asset's proof.","response":[]}},{"name":"Get project asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using project permissions, get an asset's proof.\nPossible statuses: 1 (valid), 2\/6 (pending), 3\/4\/5 (not created)","response":[]}},{"name":"Get project asset proof URL","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}\/proof\/url","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using project permissions, get the URL to view an asset's proof.","response":[]}},{"name":"Generate project asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"version\":90583029}"},"description":"Using project permissions, generate a proof for an asset.\n\"version\" is not required and works best if there is no\ncurrent proof for a given asset and you want to proof a previous\nversion.","response":[]}},{"name":"Delete project asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/projects\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"[]"},"description":"Using project permissions, delete an asset's proof.","response":[]}},{"name":"Get task asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using task permissions, get an asset's proof.\nPossible statuses: 1 (valid), 2\/6 (pending), 3\/4\/5 (not created)","response":[]}},{"name":"Get task asset proof URL","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}\/proof\/url","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using task permissions, get the URL to view an asset's proof.","response":[]}},{"name":"Generate task asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"version\":1434202454}"},"description":"Using task permissions, generate a proof for an asset.\n\"version\" is not required and works best if there is no\ncurrent proof for a given asset and you want to proof a previous\nversion.","response":[]}},{"name":"Delete task asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"[]"},"description":"Using task permissions, delete an asset's proof.","response":[]}},{"name":"Get approval asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using approval permissions, get an asset's proof.\nPossible statuses: 1 (valid), 2\/6 (pending), 3\/4\/5 (not created)","response":[]}},{"name":"Get approval asset proof URL","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/assets\/{assetId}\/proof\/url","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Using approval permissions, get the URL to view an asset's proof.","response":[]}},{"name":"Generate approval asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"[]"},"description":"Using approval permissions, generate a proof for an asset.","response":[]}},{"name":"Delete approval asset proof","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/approvals\/{key}\/assets\/{assetId}\/proof","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"[]"},"description":"Using approval permissions, delete an asset's proof.","response":[]}}]},{"name":"Statuses\n\nAPIs to get statuses.","description":"","item":[{"name":"Get all statuses","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/statuses","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns the list of task statuses available on your account.","response":[]}}]},{"name":"Tasks\n\nAPIs to get request tasks.","description":"","item":[{"name":"Get all tasks","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks?sort=assignee_type&sortdir=desc&offset=1353531804&limit=63&filter[status][]=22198","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"If non-admin user is logged in, gets all of his\/her requests that he\/she has created.\nIf admin user is logged in, gets all requests that are not in \"draft\" status.\nIf no user is logged in, gets all that they have session_id to.","response":[]}},{"name":"Get task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"If non-admin is viewing, returns the request if he\/she created it.\nIf admin user is logged in, returns the quest if it is not in \"draft\" status.","response":[]}},{"name":"Get task assets","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets?offset=529373646&limit=24&approval_status=1","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get all assets associated with a given task. Passing in the\n\"approval_status\" parameter will also return the \"approval\" object\nwith the response, which will either be null or an object like\nthe following: \"approval\": { \"key\": \"mxKs2BrstY%2AOfr4AO8m8TWedO7TYgF1SDdKrZJm9vDE%2C\", \"type\": \"approval\", \"status\": 1, \"current_stage_id\": 0, \"is_approver\": true, \"editable\": true }","response":[]}},{"name":"Get task asset by ID","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns the task asset object using task permissions.","response":[]}},{"name":"Get task asset's versions","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}\/versions","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Returns the task asset versions using task permissions.","response":[]}},{"name":"Get task watchers","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/watchers?offset=1111102146&limit=52","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"Get all watchers associated with a given task.","response":[]}},{"name":"Get task checklist","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/checklists","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"GET","body":{"mode":"raw","raw":[]},"description":"","response":[]}},{"name":"Create task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"form_id\":34435237,\"assetids\":[44415],\"keywords\":\"necessitatibus\",\"status\":34435237,\"name\":\"necessitatibus\",\"due_date\":34435237,\"assignee_id\":34435237,\"project_id\":34435237,\"fields\":[44415]}"},"description":"Create a new task. At a minimum, \"form_id\" is required for this\nto work. Name will default to an empty string and status will default to the\ndraft status in that case. Draft tasks may only be seen by the current logged-in\nuser.\n\nA successful response will be a 200 message and the request task object that has\nbeen created.\n\nform_id:<\/b> The form ID that this task is being created off of.
\nassetids:<\/b> An array of asset IDs to automatically associate with this task.
\nkeywords:<\/b> A comma-separated string of keywords. These will automatically get\nassigned to any of the above asset IDs. Anything passed into the \"keywords\" type\nfield should be in here.
\nstatus:<\/b> Default status of a created form is draft, but to submit a form,\nit needs to be set to pending. These statuses are associated with the ids\nreturned in the GET \/statuses call.
\nname:<\/b> The name of your task. Anything passed into the \"task name\"\ntype field should be in here.
\ndue_date:<\/b>A UTC unix timestamp. Anything passed into the \"due date\" type\nfield should be in here.
\nassignee_id:<\/b> The user ID of the assignee. Anything passed into the\n\"assignee\" type field should be in here.
\nproject_id:<\/b> A valid project ID to associate this task with.
\nfields:<\/b> An array of field data objects. Each field object needs to have\na required numeric \"id\" (corresponding to the original field ID when retrieving the form fields)\nand an optional \"response\" (empty if no response). Static fields do not\nuse the response. Picklists dropdowns, radio button options, and checkbox options\nshould have the selected string value as the response. Attachments requires\nan array of assets that have both filename and id. Field types:\nPicklist (15), Radio (16), Checkbox (17), Datepicker (18), Static image (20),\nStatic text (21), Short answer (22), Long answer (23), Static description (24),\nAttachments (19), Keywords (25, comma-separated keywords), Due date (26, unix timestamp),\nAssignee (28, numeric user id), Task name (29),\nTask description (30), Task email (31)\n\nHere's an example of some JSON you might pass in to create a task:\n{\n \"form_id\": 213,\n \"name\": \"Task created via API\",\n \"status\": 7,\n \"fields\": [\n {\n \"id\": 17396,\n \"response\": \"The task description.\"\n },\n {\n \"id\": 17393,\n \"response\": \"user@email.com\"\n },\n {\n \"id\": 17394,\n \"response\": 144859\n },\n {\n \"id\": 17395,\n \"response\": 1522173658\n },\n {\n \"id\": 2764,\n \"response\": \"some,example,keywords\"\n },\n {\n \"id\": 17398,\n \"response\": \"a short answer\"\n },\n {\n \"id\": 17399,\n \"response\": \"a long, long, long, long, long answer\"\n },\n {\n \"id\": 17400,\n \"response\": \"Drop 3\"\n },\n {\n \"id\": 17401,\n \"response\": 1522173658\n },\n {\n \"id\": 17402,\n \"response\": [\"Check 1\", \"Check 3\"]\n },\n {\n \"id\": 17403,\n \"response\": \"Choice 2\"\n }\n ]\n}","response":[]}},{"name":"Add asset to task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"[]"},"description":"Associate a single asset to a task.","response":[]}},{"name":"Add assets to task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"assetids\":[49770]}"},"description":"Associate one or more assets to a task.","response":[]}},{"name":"Edit task checklist","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/checklists","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"POST","body":{"mode":"raw","raw":"{\"checklist_items\":[13658]}"},"description":"Takes in the full checklist for both marking a checklist\nitem complete, and for editing the checklist content. Takes in\nan array of checklist_items which consist of \"value\", \"status\",\n\"creator_id\", \"pos\", and \"completed_by_id\" per checklist item.\n\"status\" should be 0 if incomplete, and 1 if complete.","response":[]}},{"name":"Add watchers to task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/watchers","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"PUT","body":{"mode":"raw","raw":"{\"user_ids\":[41724],\"message\":\"fugiat\"}"},"description":"Add one or more users to a task.","response":[]}},{"name":"Update task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"PUT","body":{"mode":"raw","raw":"{\"status\":4,\"name\":\"aspernatur\",\"due_date\":4,\"assignee_id\":4,\"project_id\":4}"},"description":"status:<\/b> If you are updating your task's status, it must be one of the status IDs associated with your account, not including draft.
\nname:<\/b> The name of your task.
\ndue_date:<\/b>A UTC unix timestamp.
\nassignee_id:<\/b> The user ID of the assignee.
\nproject_id:<\/b> A valid project ID to associate this task with.","response":[]}},{"name":"Remove asset from task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets\/{assetId}","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"[]"},"description":"Disassociate a single asset from a task. This does not delete the asset\nfrom the asset library.","response":[]}},{"name":"Remove assets from task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/assets","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"{\"assetids\":[2317]}"},"description":"Disassociate one or more assets from a task. This does not delete the asset\nfrom the asset library.","response":[]}},{"name":"Remove watchers from task","request":{"url":"https:\/\/apiv2.webdamdb.com\/workstream\/tasks\/{id}\/watchers","header":[{"key":"Content-Type","value":"application\/json","description":""}],"method":"DELETE","body":{"mode":"raw","raw":"{\"user_ids\":[29818],\"message\":\"mollitia\"}"},"description":"Remove one or more watchers from a task.","response":[]}}]}]}