# Write API - Is it possible to post/patch/update and specify a custom page slug/url?

**URL:** <https://forum.builder.io/t/write-api-is-it-possible-to-post-patch-update-and-specify-a-custom-page-slug-url/895>\
**Category:** Technical Questions\
**Tags:** api\
**Created:** [August 24, 2021, 6:01pm UTC](https://forum.builder.io/t/write-api-is-it-possible-to-post-patch-update-and-specify-a-custom-page-slug-url/895 "2021-08-24T18:01:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandalfthedev](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@gandalfthedev](https://forum.builder.io/u/gandalfthedev)\
**Post date:** [August 24, 2021, 6:01pm UTC](https://forum.builder.io/t/write-api-is-it-possible-to-post-patch-update-and-specify-a-custom-page-slug-url/895/1 "2021-08-24T18:01:37Z")

</div>

I am doing something like the snippet of code below and would like to know if I can specify a specific key value pair in the `page` object that would allow me to provide/update the url/slug of any page via the write api. Thank you!

```auto
const response = await axios.post('https://builder.io/api/v1/write/page', page, {
        headers: {
          Authorization: 'Bearer ' + process.env.API_SECRET
        }
 })

```

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [August 24, 2021, 7:55pm UTC](https://forum.builder.io/t/write-api-is-it-possible-to-post-patch-update-and-specify-a-custom-page-slug-url/895/2 "2021-08-24T19:55:05Z")

</div>

Hi @gandalfthedev , you’d want to add a query prop on the object you’re sending that’ similar to this:

```auto
        "query": [
          {
            "property": "urlPath",
            "operator": "is", // can be `startsWith` to match any urls that starts with value
            "value": "/my-page" // must start with /
          }
        ] 

```

PS: you can inspect the content in the [GraphQL explorer](https://builder.io/graphql-explorer)

---

<div class="post-metadata">

**Author:** ![gandalfthedev](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@gandalfthedev](https://forum.builder.io/u/gandalfthedev)\
**Post date:** [August 26, 2021, 9:45pm UTC](https://forum.builder.io/t/write-api-is-it-possible-to-post-patch-update-and-specify-a-custom-page-slug-url/895/3 "2021-08-26T21:45:46Z")

</div>

Thanks so much for your reply @aziz. May I ask, is there somewhere I could find more information about queries like this? The Write API documentation I’ve found doesn’t include much about more intricate queries. [Builder.io Write API - Builder.io](https://www.builder.io/c/docs/write-api)

---

<div class="post-metadata">

**Author:** ![gandalfthedev](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@gandalfthedev](https://forum.builder.io/u/gandalfthedev)\
**Post date:** [August 26, 2021, 9:55pm UTC](https://forum.builder.io/t/write-api-is-it-possible-to-post-patch-update-and-specify-a-custom-page-slug-url/895/4 "2021-08-26T21:55:31Z")

</div>

For example how would I also query for the page SEO title?
