# Update resources Updates resources for a workspace. Endpoint: PATCH /iacm/api/orgs/{org}/projects/{project}/workspaces/{workspace}/resources Version: 1.0 Security: x-api-key ## Path parameters: - `org` (string, required) Org is the organisation identifier. Example: "4" - `project` (string, required) Project is the project identifier. Example: "1cs" - `workspace` (string, required) Workspace identifier Example: "Dolor provident ipsum vel." ## Header parameters: - `Harness-Account` (string, required) Account is the internal customer account ID. Example: "82" ## Request fields (application/json): - `resources` (array, required) Example: [{"attributes":"Quod voluptate est officia.","mode":"Id deleniti saepe maxime tempora.","module":"Qui possimus ea.","name":"Atque et velit non eos.","path_id":"Quas voluptatem.","provider":"Aut autem.","sensitive_attribute_paths":["Qui ut adipisci deleniti dolorum.","Mollitia hic."],"type":"Odio reprehenderit quia."},{"attributes":"Quod voluptate est officia.","mode":"Id deleniti saepe maxime tempora.","module":"Qui possimus ea.","name":"Atque et velit non eos.","path_id":"Quas voluptatem.","provider":"Aut autem.","sensitive_attribute_paths":["Qui ut adipisci deleniti dolorum.","Mollitia hic."],"type":"Odio reprehenderit quia."},{"attributes":"Quod voluptate est officia.","mode":"Id deleniti saepe maxime tempora.","module":"Qui possimus ea.","name":"Atque et velit non eos.","path_id":"Quas voluptatem.","provider":"Aut autem.","sensitive_attribute_paths":["Qui ut adipisci deleniti dolorum.","Mollitia hic."],"type":"Odio reprehenderit quia."},{"attributes":"Quod voluptate est officia.","mode":"Id deleniti saepe maxime tempora.","module":"Qui possimus ea.","name":"Atque et velit non eos.","path_id":"Quas voluptatem.","provider":"Aut autem.","sensitive_attribute_paths":["Qui ut adipisci deleniti dolorum.","Mollitia hic."],"type":"Odio reprehenderit quia."}] - `resources.attributes` (any, required) Resource attributes Example: "Tempore itaque sequi." - `resources.mode` (string, required) managed, datasource, output Example: "Quis unde." - `resources.module` (string, required) Module path Example: "Quae nostrum repellendus et." - `resources.name` (string, required) Resource name Example: "Omnis dolorem." - `resources.path_id` (string, required) path id Example: "Vitae animi." - `resources.provider` (string, required) Provider name Example: "Et perferendis eius culpa." - `resources.sensitive_attribute_paths` (array) Paths to sensitive attributes Example: ["Quaerat debitis et hic quasi recusandae enim.","Nemo sint voluptas dolorem accusantium quia sint."] - `resources.type` (string, required) Resource type Example: "Vero vitae tempore nobis asperiores." ## Response 200 fields (application/json): - `results` (array, required) Example: [{"error":"Beatae exercitationem recusandae aspernatur fuga id.","mode":"Quae repellat sequi nulla architecto eum.","module":"Illo quae inventore explicabo et.","name":"Et debitis.","provider":"Itaque quas est rerum.","status":"failed","type":"Ut et ea vero repudiandae."},{"error":"Beatae exercitationem recusandae aspernatur fuga id.","mode":"Quae repellat sequi nulla architecto eum.","module":"Illo quae inventore explicabo et.","name":"Et debitis.","provider":"Itaque quas est rerum.","status":"failed","type":"Ut et ea vero repudiandae."},{"error":"Beatae exercitationem recusandae aspernatur fuga id.","mode":"Quae repellat sequi nulla architecto eum.","module":"Illo quae inventore explicabo et.","name":"Et debitis.","provider":"Itaque quas est rerum.","status":"failed","type":"Ut et ea vero repudiandae."}] - `results.error` (string) Example: "Rem nihil culpa." - `results.mode` (string, required) Example: "Voluptates nulla exercitationem illum porro doloremque inventore." - `results.module` (string, required) Example: "Dolorem facere nisi." - `results.name` (string, required) Example: "Tenetur sint." - `results.provider` (string, required) Example: "Est sint consequuntur enim ut est." - `results.status` (string) Enum: "updated", "skipped", "failed" - `results.type` (string, required) Example: "Ut et quidem velit." - `summary` (object, required) Summary of a resource update operation Example: {"failed":5728206480806608000,"skipped":5718977345613849000,"total":4454490758451787000,"updated":4653572137659657000} - `summary.failed` (integer, required) Number of resources that failed to update Example: 5728206480806608000 - `summary.skipped` (integer, required) Number of resources skipped Example: 5718977345613849000 - `summary.total` (integer, required) Total number of resources processed Example: 4454490758451787000 - `summary.updated` (integer, required) Number of resources successfully updated Example: 4653572137659657000 ## Response 400 fields (application/vnd.goa.error): - `results` (array, required) Example: [{"error":"Beatae exercitationem recusandae aspernatur fuga id.","mode":"Quae repellat sequi nulla architecto eum.","module":"Illo quae inventore explicabo et.","name":"Et debitis.","provider":"Itaque quas est rerum.","status":"failed","type":"Ut et ea vero repudiandae."},{"error":"Beatae exercitationem recusandae aspernatur fuga id.","mode":"Quae repellat sequi nulla architecto eum.","module":"Illo quae inventore explicabo et.","name":"Et debitis.","provider":"Itaque quas est rerum.","status":"failed","type":"Ut et ea vero repudiandae."},{"error":"Beatae exercitationem recusandae aspernatur fuga id.","mode":"Quae repellat sequi nulla architecto eum.","module":"Illo quae inventore explicabo et.","name":"Et debitis.","provider":"Itaque quas est rerum.","status":"failed","type":"Ut et ea vero repudiandae."}] - `results.error` (string) Example: "Rem nihil culpa." - `results.mode` (string, required) Example: "Voluptates nulla exercitationem illum porro doloremque inventore." - `results.module` (string, required) Example: "Dolorem facere nisi." - `results.name` (string, required) Example: "Tenetur sint." - `results.provider` (string, required) Example: "Est sint consequuntur enim ut est." - `results.status` (string) Enum: "updated", "skipped", "failed" - `results.type` (string, required) Example: "Ut et quidem velit." - `summary` (object, required) Summary of a resource update operation Example: {"failed":5728206480806608000,"skipped":5718977345613849000,"total":4454490758451787000,"updated":4653572137659657000} - `summary.failed` (integer, required) Number of resources that failed to update Example: 5728206480806608000 - `summary.skipped` (integer, required) Number of resources skipped Example: 5718977345613849000 - `summary.total` (integer, required) Total number of resources processed Example: 4454490758451787000 - `summary.updated` (integer, required) Number of resources successfully updated Example: 4653572137659657000 ## Response 401 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 403 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 404 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 408 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 409 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 423 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 499 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 500 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 502 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true