---
id: action-context-generate
title: "Generate the payload of a notification"
description: "Generate the payload of a notification"
sidebar_label: "Generate the payload of a notification"
hide_title: true
hide_table_of_contents: true
api: eJztWEtv4zYQ/ivEoIdsqzxatIcKKIp0H216cIPEiy5guAEtjW1uJFIhqey6gv57MSRlSbYcJWmA9rA3iRwOZ775ODNkBapAza1Q8iKFGHhCnzeJkhY/23iFkmYRIrB8ZSCewbmTgHkEKZpEi8L9xvBrEGV2jazgm0zxlKkl40wqK5YicZtABBrvSjT2F5VuIK7cr9CYQmx1iRG4raWlKV4UWVh3+tHQLhWYZI05py+7KRBiUIuPmNig1yuaBTcgAoP6XiRkP0or7OZGamd7oclvK9C4jbz4iFI3F0HBNc/Rojb7ivzyrRpjtZArt3mZk4pEo0ezLFL/kWKGFmFe9xQPWMLTVJCVPLvsbEmY1fWDsy0II/6lIkdphJIDjnXmXta2TlhIsbAZaZ5cTYhyOygW3FokQfhL6RWX4m/HjZ9mZ8c/fj3/5ijmSaJKaZuBVz8fxZLnaAqeYHewQ6zusElU0ZH7CnY5PimzrMi4XSqdsys0qtQJsgnPkR1NriavmMZCoyGf5IpxthaouU7WIuEZEymNLwVqtlSaya4uHXQZaMN1YwpM2oMzEjzycz9sbnSPjyNBGZmtnYlJqYXdQDyrYIFcoz4v7Rri2byek2GmUNJ4G7778MExqIfkG1zyMrMEopOEpxz8QJJrjxPzGYlN+mlmF6w+MCIdOqYUC24hhrIUqQuFi8pDJ7o5W3SA8T7YPyIc+3wTh2xAS/1nesMH12/toqRxbEWOZFwvrw7QYyTHNWSIHgvGATJFYLJyNTxhuS3N4NRzHPZJ82lrnp1UHYvLzD593XARIDjGDvTzODqMft3PDyKFIDp/uCK8pA0RcGu1WJQWnw7j/wetf1P8hrX2gNl1tbch7Z8JeTvkHJUQvqBc2DDP9WijmaDNrjdDqFHYWpFhJlOlPLTYTQ7ObIvxoaVbgWGrfHk/aLSfHpzr9guH1ndlximyg2Ifsw5CDR473nd97XnW+rFv9Y6N8/3+6WGTm654u3/Lx5Cqe4m5l3F7qbRNjlHTFu9yuO28HX0DOft9+PAB8TW3Kac7FvWK3tx3I98PdRjv3Ml3rVavK0OtlTYsLQkidn55wYS0qD025jl9yFvSONpxeIBfq7TLbVnmC9R7feZv0+kl8wtYolJkQqbODrly1yvng6uifXXbzNBX916KuzKs8vo8KkvUKBNkXKYs4RZXSjfUIma5TUaVX6+VthFblzmXxxp5Shkp7EUrGe3plW9IbY7G8NUjrH6DlosM06ArrGOFVvcidf31NvGycF91jH8hGnR52Yldg0vrSCDhD19I+IWE/y0JnWN2reghp1DG52y6lcFp/10npGfXFM8qKHUGMaytLUx8esoLcdK9nJ4kKge61TWXvmsin+dT9+q3hZIUubJHYhAHIYjCx7umJfv9z6nDikh91T4Kvf3M8yLDwTvL9v2k19bX/Y62167VOzWyDfTBa7a/53SLqJBLRTOEmI/otydnJ2d03JoHi+5t/vzywl09lLE576p89BtZjz5Vmw0eryEARtE+LTIu3Glyga4CKWY7j330erAm1sQzqKoFN/heZ3VNw3clarrrzyO451r4nnNG7ccaeYrasegWNxDDa2/q8dR3Bfc8K8mOvSRWR82K8yTBwj4oO+8Q+/KP6ylxKTwf5i75gOaf6LjwTxADtUmFbdp1N1ZBxuWqdEcevE73zNEn7g5RnVdhistNx8Kq8hJTdYuyriEKrlj6h5oO4z/HN33I
sidebar_class_name: "post 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={"Generate the payload of a notification"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/action_context"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Generate the payload of a notification

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

<ParamsDetails
  parameters={undefined}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action","service","entity_nrn"],"properties":{"action":{"type":"object","required":["type","parameters"],"properties":{"type":{"type":"string","enum":["create","update","delete"]},"parameters":{"type":"object","additionalProperties":true}},"additionalProperties":true},"service":{"type":"object","required":["dimensions"],"properties":{"dimensions":{"type":"object","additionalProperties":true}},"additionalProperties":true},"entity_nrn":{"title":"NRN","type":"string","pattern":"^organization=[0-9*]+(:account=[0-9*]+)?(:namespace=[0-9*]+)?(:application=[0-9*]+)?(:scope=[0-9*]+)?$","description":"Nullplatform Resource Name (NRN) representing a hierarchical identifier for nullplatform resources"},"service_specification":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"2XX":{"description":"Default Response","content":{"application/json":{"schema":{"title":"Service Action Notification","type":"object","properties":{"id":{"type":"string","format":"uuid"},"source":{"type":"string","enum":["service"]},"event":{"type":"string","enum":["service:action:create"]},"created_at":{"type":"string","format":"date-time"},"notification":{"type":"object","properties":{"action":{"type":"string"},"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"parameters":{"type":"object","additionalProperties":true},"results":{"type":"object","additionalProperties":true},"type":{"type":"string"},"specification":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"}},"required":["id","slug"]},"service":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"attributes":{"type":"object","additionalProperties":true},"specification":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"}},"required":["id","slug"]},"dimensions":{"type":"object","additionalProperties":true}},"required":["id","slug","attributes","specification","dimensions"]},"link":{"type":"string","nullable":true},"tags":{"type":"object","properties":{"application_id":{"type":"string"},"application":{"type":"string"},"scope_id":{"type":"string"},"scope":{"type":"string"},"namespace_id":{"type":"string"},"namespace":{"type":"string"},"account_id":{"type":"string"},"account":{"type":"string"},"organization_id":{"type":"string"},"organization":{"type":"string"}},"required":["application_id","application","scope_id","scope","namespace_id","namespace","account_id","account","organization_id","organization"]},"entity_nrn":{"type":"string"}},"required":["action","id","name","slug","status","created_at","updated_at","parameters","results","type","specification","service","link","tags","entity_nrn"]}},"required":["id","source","event","created_at","notification"]}}}},"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>


      