---
title: "Service: /groups/{group}/resources [POST]"
source: https://dev.pageseeder.com/api/services/group-resources-POST.html
description: "Creates a new empty project resource at a specified location relative to the web app folder. The service automatically determines whether to create a file or folder based on the filename extension. Requires administrator permissions."
last_updated: 2026-09-02T11:36:03+10:00
document_type: api_endpoint
operation_id: developer-POST
resource_id: developer
path_template: /groups/{group}/resources
http_method: POST
api_category: developer
implementation_version: 6.2005
api_since: 4.8006
deprecated_since: null
obsolete_since: null
api_support: experimental
cache_control: N/A
generated_at: 2026-09-02
tokens: ~367
---

# /groups/\{group\}/resources \[POST\]

## Description

Creates a new empty project resource.

The location parameter must be the location of the resource to create relative to the web app folder. For example:

- `/WEB-INF/config/template/myproject/config/project.properties`
- `/WEB-INF/config/template/myproject/psml/spec/style/document.css`
- `/WEB-INF/config/template/myproject/organization/style/logo.svg`

Only resources which are not part of the default template can be created.

This service tries to guess whether a file or a folder is to be created based on the name; if the name ends with a file extension, the service assumes a file, otherwise it creates a folder.

## Parameters

| Name | Description | Required | Type | Default |
| --- | --- | --- | --- | --- |
| location | The location of the resource to create, relative to the Web container | yes | path |  |

## Permission

This service requires administrator.

## Response

When the resource is successfully created, this service returns the following XML and HTTP status `201` (Created).

```xml
<file name="[name]"
      path="[path]"
      type="[folder|file]"
      media-type="[media type]"
      length="0"
      status="[forbidden|created]"/>
```

## Error Handling

No specific errors expected for this service.

> **Warning:** This service returns non-standard error messages. It returns an HTTP status code 400 error if the resource already exists. This might change in the near future.

