> For the complete documentation index, see [llms.txt](https://docs.optty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optty.com/partner-onboarding-docs/onboarding-api/onboarding/post-parents-create.md).

# POST /parents/create

## POST /parents/create

> Create Parent ---- \[auth scope:  admin, grandparent]

```json
{"openapi":"3.0.0","info":{"title":"Merchant API","version":"1.0"},"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ParentDto":{"type":"object","properties":{"parentName":{"type":"string","description":"The name of Parent"},"status":{"type":"boolean","description":"Parent's Status"},"isAllOptIn":{"type":"object","description":"Do you want to opt in for all payment providers"},"theme":{"description":"The new parent theme color details object","allOf":[{"$ref":"#/components/schemas/ThemeDto"}]},"grandparentId":{"type":"string","description":"The new parent grandparent id"},"slug":{"type":"object","description":"The new Parent slug"},"Country":{"type":"string","description":"The country in which you want to store data of merchant in spanner"}},"required":["parentName","status","isAllOptIn","theme","grandparentId","slug","Country"]},"ThemeDto":{"type":"object","properties":{"logo":{"type":"string","description":"The merchant logo"},"leftSidebarBgColor":{"type":"string","description":"The left sidebar background color"},"leftSidebarActiveColor":{"type":"string","description":"The left sidebar active color"},"leftSidebarHoverColor":{"type":"string","description":"The left sidebar hover color"},"leftSidebarTextColor":{"type":"string","description":"The left sidebar text color"},"topBarTextColor":{"type":"string","description":"The top bar text color"},"topBarBgColor":{"type":"string","description":"The top bar background color"},"paymentLinkMenuAlias":{"type":"string","description":"The alias for \"Optty Direct\" label on UPP"}},"required":["logo","leftSidebarBgColor","leftSidebarActiveColor","leftSidebarHoverColor","leftSidebarTextColor","topBarTextColor","topBarBgColor","paymentLinkMenuAlias"]},"CreateParentResponseDto":{"type":"object","properties":{"image":{"type":"string","description":"Parent image URL"},"parentId":{"type":"string","description":"Parent's Id"},"parentName":{"type":"string","description":"Parent's Name "},"status":{"type":"boolean","description":"Parent's Status"},"theme":{"description":"Parent's theme","allOf":[{"$ref":"#/components/schemas/ThemeDto"}]},"authSecret":{"type":"string","description":"The parent secret"},"hmacKey":{"type":"string","description":"The parent hmac key"},"isAllOptIn":{"type":"boolean","description":"opted in status for all payment providers"}},"required":["parentId","parentName","status","theme","authSecret","hmacKey","isAllOptIn"]}}},"paths":{"/parents/create":{"post":{"operationId":"ParentController_create","summary":"Create Parent ---- [auth scope:  admin, grandparent]","deprecated":false,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentDto"}}}},"responses":{"201":{"description":"Parent created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateParentResponseDto"}}}}},"tags":["parents"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.optty.com/partner-onboarding-docs/onboarding-api/onboarding/post-parents-create.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
