Skip to content

Commit

Permalink
specify code block language
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenziewildman committed Jul 28, 2023
1 parent 5e04624 commit 031fcc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/hub/developers/create-collection-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Hub's API can be used to create a verified collection and then mint a token into
## Step 1: Authenticate

All API calls need a header of the form
```
```json
{ "Authorization": "Your_API_Token" }
```

Expand All @@ -25,7 +25,7 @@ To get an API token:
## Step 2: GraphQL mutation

A sample `createCollection` mutation:
```
```graphql
mutation CreateCollection($input: CreateCollectionInput!) {
createCollection(input: $input) {
collection {
Expand All @@ -36,7 +36,7 @@ To get an API token:
}
```
Variables:
```
```json
{
"input": {
"project":"<PROJECT_ID>",
Expand Down Expand Up @@ -64,7 +64,7 @@ To get an API token:
## Step 3: Check status of collection creation

To view the status of a collection created by the steps above, use the new collection's `id` that is returned when creating the collection to query:
```
```graphql
query GetCollectionStatus($project: UUID!, $collection:UUID!) {
project(id: $project) {
id
Expand All @@ -77,7 +77,7 @@ To get an API token:
}
```
Variables:
```
```json
{
"project": "<PROJECT_ID>",
"collection": "<COLLECTION_ID>"
Expand Down

0 comments on commit 031fcc7

Please sign in to comment.