---
id: service-action-update
title: "Update a service action"
description: "Updates a service action"
sidebar_label: "Update a service action"
hide_title: true
hide_table_of_contents: true
api: eJztWW1v2zYQ/ivEfdoAJW7TJt30LWtaNMO6Bo2DFXCDgBZPNluKVPiS1DP034cjJVl2nGQttqYf8klv5N3xuedeSC3B1Gi5l0YfC8jBob2SBV7wgl7loRbcI2Tg+cxBPoHD+B7OMxDoCivr+JjDWRzoGGetBJYkQAYWLwM6/5sRC8iX8VFaFJB7GzCDwmiP2tMnXtdKFtGY0SdHcpfgijlWnO689Aoh70zIoLZku5fo6LPmFcZhi5pGOW+lnkEGldR/oJ75OeRPM6j4l+5pb38/A22iZtShgnyig1Lnzeba/uQVMlMyP0eG2ku/2GVvg/NsiowzbfQOVrVfsKSScS2YNp7hZeCKecNIKiSptPALV2Mhy3ahF1LEpevFuxLyyWqZx4Jg31hMaWzFPeQQgqTvG07Q8jIgk4KsLCVaVho7MJtZrC061B4F4+Sss7PjI2iyHrVk6g3vHiXLWbhVAXfOFJKT4LXl0bordI7Pkpe61b1N71ZL5NbyBWQgPVZu4Ecz/YSFv+FthVeotrm79SQInAZ6lro07YWgS8y55ra7tLOsNZbw5Z6rxO6SB0VItwLWAWnNZw6v0BKy0Z5ddpSmOXL7xzj1Iwwg2GbwuuDxPEYOMaedw7oAaTLwskLneVUPBOlQTdHeFNQN7ZjbiZOaVVIp6bAwWjhommwQk5Pe1PMMuBCSxHF1MgC/5Mrhprp30U0rglEgdH5n19LPN6BKep3nPri73FijFlLPLgqLKRG1L6JLL2prZhadgwxcKIp0V3KpkIKj4LpARfc3CH0aFXfQpFS1y07nJihBYW10H/EtnVGwK64COgKQ3qc01Aoic9s0Sn6queUVerRbmbxuykk/dhhEEbKVbRCd5Iha90t8nway2hoRChRsulgTdSPBbXOe1M4Tfm4Vor26O3jRfK30DbQm2zL+90yFIGl6zf0csramQJS/XrcoZ/54hra193iLvecZOCwCRWBEeYrcoj0MVAkn5/TZoquNdim/7n34QJev48l/VcpTSXwQUH/8LsKpMPt/LDxVYbZp4WHwhspmwZVasBlqynIoWGlNxT5GuFKF29bUPIgHH7usxy7rscsadlmpdxIX3G9Dpid73Ok1GaQ9378e/tjDPUQPl/U79QdMtUrqzw+pvyP2dHF/yJ85tOz4qGNEoMfruWGtjO/ZIDcZPN/WXr2OMMXVr2mKadMxEWJjcHhyzKT2aJO139R3vWoT8d3ZP0X2SyPw/kT4Zjw+YWkCK4ygBCiiHXqWXBk1ks/Wxd3mrcSJOCvJS6iUaFHT4ZIWrOAeZ8bKv/uQTUruFX46N9ZnbB4qrncscsGnqtNFMxnpTMIXX1VWjtDHvNXK6mpBbc2VFLGp63mR6s0Xv4Vs30yDYX0Z+G5Vd/uik0i4/0jCRxI+LAnjwvzciLSVLWgvG7e0OYzaAjda9rvaZpT0jJZSNJBKYHdqEKyCHObe1y4fjXgtd6nLrhX3VH12C1PBcA98SnRMDBvuhHtwSRBpiMMgbwdB1t687ira73+NI3pE8/erg+5XX3hVK1ydS69565b9CTwr+S/75cHznf0XT1/sPN8/2NuZPiuLnb3i14Nn5cEBL/kBDDv9Sd+idw10T5OVwkE7+yRC0DZsW/qyYcuz1q00Tdvj50sgyBNJnu4+2X0SNaSI/nOAOHEjtlHG+YrrARLpV8G2PwVrFFyuMspdfxdafxGNR7XiMsZgJMOyZdKka5Ugg3x4QtLLyGVsL+fGeRq+XE65wzOrmoZeXwa0dGZynsEVt5LiNCIvpKN7sb1XH5r/0/s2KH5mt1nc7c807c5ikwo5QAafcZEOoGj7+B01rnBq6KBgjlygjctO318mVTtjkrKafyPzk9lpxmFRYO3vHHs+yAYnh+OXbyje2t9GVUzZYPk1JRl+nYw1dco79F+J3i1BcT0LKQKSUKIuXw/ujWBOBwLb4Fgu04ix+Yy6aXp0PD0TMk3zDwZOiBc=
sidebar_class_name: "patch api-method"
info_path: docs/api/nullplatform-api
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Update a service action"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/service/{serviceId}/action/{id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Updates a service action

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"schema":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"in":"path","name":"id","required":true},{"schema":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"in":"path","name":"serviceId","required":true}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"required":true,"content":{"application/json":{"schema":{"title":"Action","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"not":{"enum":[null]},"description":"Name of the entity. Must be a non-empty string and not equal to null"},"desired_specification_id":{"anyOf":[{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},{"type":"null"}],"description":"Desired unique identifier for the associated specification"},"messages":{"title":"Message","type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["debug","info","information","warn","warning","error","fatal"],"default":"info","description":"Message severity level. Defaults to \"info\""},"message":{"type":"string","description":"The actual message content"},"timestamp":{"type":"number","description":"Timestamp of the message in milliseconds"}},"required":["message"],"additionalProperties":false,"description":"Object representing messages with severity levels"}},"status":{"type":"string","enum":["pending_create","pending","in_progress","success","failed","cancelled"],"description":"Status of the action. Should be one of the specified values in the ActionStatus enumeration"},"parameters":{"type":"object","description":"Parameters associated with the action"},"results":{"type":"object","description":"Results produced by the action"}},"description":"Object representing instances","type":"object","additionalProperties":false}}},"description":"Object representing instances"}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"2XX":{"description":"Object representing instances","content":{"application/json":{"schema":{"title":"Action","properties":{"id":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"name":{"type":"string","minLength":1,"maxLength":255,"not":{"enum":[null]},"description":"Name of the entity. Must be a non-empty string and not equal to null"},"slug":{"type":"string","minLength":1,"maxLength":255,"not":{"enum":[null]},"description":"Slug of the entity. Automatically generated from \"name\""},"specification_id":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"desired_specification_id":{"anyOf":[{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},{"type":"null"}],"description":"Desired unique identifier for the associated specification"},"messages":{"title":"Message","type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["debug","info","information","warn","warning","error","fatal"],"default":"info","description":"Message severity level. Defaults to \"info\""},"message":{"type":"string","description":"The actual message content"},"timestamp":{"type":"number","description":"Timestamp of the message in milliseconds"}},"required":["message"],"additionalProperties":false,"description":"Object representing messages with severity levels"}},"created_at":{"type":"string","format":"date"},"updated_at":{"type":"string","format":"date"},"status":{"type":"string","enum":["pending_create","pending","in_progress","success","failed","cancelled"],"description":"Status of the action. Should be one of the specified values in the ActionStatus enumeration"},"parameters":{"type":"object","description":"Parameters associated with the action"},"results":{"type":"object","description":"Results produced by the action"},"service_id":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"link_id":{"title":"Id","type":"string","format":"uuid","description":"Unique identifier for the entity represented as a UUID"},"created_by":{"type":"string","description":"User ID of the user who created the action"}},"description":"Object representing instances","type":"object","additionalProperties":false}}}},"4XX":{"description":"Format for representing errors during API interactions","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code indicating the error"},"code":{"type":"string","description":"Unique error code for reference and categorization"},"error":{"type":"string","description":"Short, human-readable error type or category"},"message":{"type":"string","description":"Detailed error message providing additional context"}},"description":"Format for representing errors during API interactions","required":["statusCode","error","message"]}}}},"5XX":{"description":"Format for representing errors during API interactions","content":{"application/json":{"schema":{"title":"Error","type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code indicating the error"},"code":{"type":"string","description":"Unique error code for reference and categorization"},"error":{"type":"string","description":"Short, human-readable error type or category"},"message":{"type":"string","description":"Detailed error message providing additional context"}},"description":"Format for representing errors during API interactions","required":["statusCode","error","message"]}}}}}}
>
  
</StatusCodes>


      